HG(CONFIG)

πŸ“¦
version 7.2.4 Β· 2 versions
, in arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– 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-shared flag is used to edit the .hg/hgrc-not-shared config 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: returns 0 on success, 1 if NAME does 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 🌈

  • showconfig
  • debugconfig

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 πŸ’‹βœ¨