Running with an alternate config?
Steve Barnes
gadgetsteve at hotmail.com
Mon Jul 28 05:01:06 UTC 2014
On 28/07/14 04:03, Harvey Chapman wrote:
> A quick check of the man pages and help yielded no clues… Is it possible to run hg with a different hgrc than ~/.hgrc? I was trying to run some old mercurial versions tonight, and I had to move my hgrc out of the way.
>
> Thanks,
> Harvey
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>
From the first part of hg help config it mentions:
The names of these files depend on the system on which Mercurial is
installed. "*.rc" files from a single directory are read in
alphabetical
order, later ones overriding earlier ones. Where multiple paths are
given
below, settings from earlier paths override later ones.
(All) "<repo>/.hg/hgrc"
Per-repository configuration options that only apply in a
particular
repository. This file is not version-controlled, and will not get
transferred during a "clone" operation. *Options in this file
override**
** options in all other configuration files.* On Plan 9 and Unix,
most of
this file will be ignored if it doesn't belong to a trusted
user or to
a trusted group. See the documentation for the "[trusted]" section
below for more details.
So unless one of the options in your ~/.hgrc is actually crashing hg you
can just create a .hg/hgrc in the local copy of the repo to override as
necessary.
Gadget/Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140728/24340ad9/attachment-0002.html>
More information about the Mercurial
mailing list