how to configure the global .hgrc file from the commandline
Augie Fackler
raf at durin42.com
Mon May 25 17:02:28 UTC 2020
> On May 24, 2020, at 08:30, Uwe Brauer <oub at mat.ucm.es> wrote:
>
>
>
> Hi
>
> That may sound bizarre. But lately I collaborate with colleagues, who
> don't have much interest in OS details, and use different OS. So it is
> sometimes not clear to me, especially for Windows users, where the
> corresponding global .hgrc is located.
>
> That's why I would like to know how one could configure the global .hgrc
> file from the command-line, especially adding extensions.
hg config --edit # edits the user-specific hgrc, which is probably what you want
hg config --global # edits the machine-global hgrc, almost never what you want
hg config --local # edits the .hg/hgrc file
It strikes me that we might want to rename these to be --edit-user, --edit-machine-wide, and --edit-repo respectively, but these flags will always work.
When I say "edits" above, I mean "opens the specified file in your configured text editor."
>
> I googled but could not find anything
> Thanks
>
> Uwe Brauer
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
More information about the Mercurial
mailing list