You can do it by setting your HGRCPATH
environment variable to something with no configuration in it.
ry4an@hail [~/hg/crew] % hg showconfig | grep Ry4an
ui.username=Ry4an Brase <ry4an@msi.umn.edu>
ry4an@hail [~/hg/crew] % HGRCPATH=/dev/null hg showconfig | grep Ry4an
ry4an@hail [~/hg/crew] %
Also if you're invoking from a script consider HGPLAIN too.
Both found here: https://www.mercurial-scm.org/repo/hg/file/e3b87fb34d00/mercurial/help/environment.txt
Which says:
41 HGRCPATH
42 A list of files or directories to search for configuration
43 files. Item separator is ":" on Unix, ";" on Windows. If HGRCPATH
44 is not set, platform default search path is used. If empty, only
45 the .hg/hgrc from the current repository is read.
46
47 For each element in HGRCPATH:
48
49 - if it's a directory, all files ending with .rc are added
50 - otherwise, the file itself will be added
51
52 HGPLAIN
53 When set, this disables any configuration settings that might
54 change Mercurial's default output. This includes encoding,
55 defaults, verbose mode, debug mode, quiet mode, tracebacks, and
56 localization. This can be useful when scripting against Mercurial
57 in the face of existing user configuration.
58
59 Equivalent options set via command line flags or environment
60 variables are not overridden.