[Windows: A BUG?] (was: how to configure the global .hgrc file from the commandline)

Becker, Mischa J mischa.becker at kroger.com
Thu Apr 8 16:27:56 UTC 2021


> -----Original Message-----
> From: Uwe Brauer
> Sent: Thursday, April 8, 2021 5:27 AM
> Subject: [Windows: A BUG?] (was: how to configure the global .hgrc file
> from the commandline)
>
> >>> "AF" == Augie Fackler <raf at durin42.com> writes:
>
> Hi
>
> This thread is a bit old, but today I got another question of a colleague
> of mine, who uses windows (I am only acquainted with Linux and Mac).
>
> > 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
>
> He used
>
>  hg config --edit
>
> In the repository and that opened edits the .hg/hgrc file
>
> He wants however to edit is user-specific one.
>
> He and I have no idea where the user specific  file is located in Windows.
> (In Linux mac it is in the home directory /home/user or /Users/user under
> the name .hgrc)
>
> So two questions
>
>     1. Why did hg config --edit opened the local hgrc file in windows, I
>        checked this in Linux
>        hg config --edit opens the user specific one
>
>     2. Any idea where in Windows the user specific hgrc file is located?

I use TortoiseHg which uses a Mecruial.ini file instead of the .hgrc file.  On Windows 10 I find both files at C:\Users\[UserId]\

Mischa

________________________________

This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.



More information about the Mercurial mailing list