HG(CONFIG)
π HG(CONFIG) π
okay bestie, welcome to the hg config page β this is the hg manual, section CONFIG, and it's literally your one-stop shop for peeking at (and editing) all your config settings. let's get into it β¨
πΈ NAME πΈ
hg config β show combined config settings from all hgrc files π«Ά
β¨ SYNOPSIS β¨
hg config [-u] [NAME]...
π¦ DESCRIPTION π¦
so like, with no arguments, it prints the names and values of all config items. everything. the whole vibe. π
With one argument of the form section.name, it prints just the value of that config item. one lil peek, no extra.
With multiple arguments, it prints names and values of all config items with matching section names or section.names.
With --edit, it starts an editor on the user-level config file. With --global, edit the system-wide config file. With --local, edit the repository-level config file. pick your fighter π
With --source, the source (filename and line number) is printed for each config item. receipts!! π§Ύ
See hg help config for more information about config files.
the--non-sharedflag is used to edit the.hg/hgrc-not-sharedconfig file. This file is not shared across shares when in share-safe mode. keep that in mind bestie, it matters π
π Template π
The following keywords are supported. See also hg help templates.
nameβ String. Config name.sourceβ String. Filename and line number where the item is defined.valueβ String. Config value.
okay so this next bit is important: the --shared flag can be used to edit the config file of shared source repository. It only works when you have shared using the experimental share safe feature. no cap, it's experimental.
also: returns0on success,1ifNAMEdoes not exist. exit codes are the moment fr fr.
π OPTIONS π
-u,--untrustedβ show untrusted configuration options π--exp-all-knownβ show all known config option (EXPERIMENTAL)-e,--editβ edit user config βοΈ-l,--localβ edit repository config π--sourceβ show source of configuration value π--sharedβ edit shared source repository config π«--non-sharedβ edit non shared config π«-g,--globalβ edit global config π-T,--template <TEMPLATE>β display with template π¨
π ALIASES π
showconfigdebugconfig
both iconic, both yours π
and that's the whole page bestie!! this was HG(CONFIG) β yes, the footer says the exact same thing as the top, it's giving mirror selfie energy πͺ β so go forth, check your configs, edit them with confidence, and slay. mwah πβ¨
π¦ where this page comes from
- arch rolling: mercurial 7.2.4-1 Β· GPL
- fedora 43: mercurial 7.1.1-1.fc43 Β· GPL-2.0-or-later
- fedora 43: mercurial 7.1.1-2.fc43 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2-1.fc44 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2.4-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mercurial 7.1.2
- nixos 26.05: mercurial-full 7.1.2
- nixpkgs unstable: mercurial 7.2.2
- nixpkgs unstable: mercurial-full 7.2.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms