how to configure the global .hgrc file from the commandline
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Wed May 27 07:45:29 UTC 2020
On 5/25/20 7:02 PM, Augie Fackler wrote:
>
>
>> 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.
+1
Maybe even: --edit-user-config --edit-machine-wide-config
--edit-repo-config. A bit redundant, but clearer (--edit-user could be
mistaken for edit username).
>
> 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
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
--
Pierre-Yves David
More information about the Mercurial
mailing list