I installed mercurial on my Mabook-Air (M1) using:
brew install mercurial
Mercurial (6.1.2) is working fine, but the configurations files that I copied over from my Linux setup (everything under ~/.config/hg/ including hgrc and a global hgignore) cannot be found.
man hgrc indicates that ${XDG_CONFIG_HOME:-$HOME/.config}/hg/hgrc is consulted under Unix. Is macOS not considered Unix?
Running
hg config --debug | fgrep 'read config'on (Arch) Linux gives:whereas on macOS it gives:
If you don't want to clobber your home directory with another hidden file
~/.hgrc, you can do:After which your
~/.config/hg/hgrcshould be read on mercurial startup.Unfortunately using
hg config --editnot only tries to edit~/.hgrc, but it also creates it even if you quit your editor without making changes. After that your username will be unset (as~/.hgrcis read after/etc/mercurial/hgrc