Fwd: Replacements in hgrc

paul_nathan at selinc.com paul_nathan at selinc.com
Thu Oct 13 15:56:22 UTC 2011


Unfortunately, the power to put this script in every user's directory is 
nothing more (or less than), "hey everyone, this tool will make your life 
easier. You should append this to your hgrc!". 

Thank you for your willingness to enhance Mercurial!

- - -
Regards,
Paul Nathan

gerg.ward at gmail.com wrote on 10/12/2011 06:31:56 PM:

> From: Greg Ward <greg-hg at gerg.ca>
> To: paul_nathan at selinc.com
> Date: 10/12/2011 06:31 PM
> Subject: Fwd: Replacements in hgrc
> Sent by: gerg.ward at gmail.com
> 
> Arg. I mangled your email address somehow. (Blame Gmail.) Please find
> a way to reply to the public mailing list version of this, if you feel
> a need to reply!
> 
> ---------- Forwarded message ----------
> From: Greg Ward <greg-hg at gerg.ca>
> Date: Wed, Oct 12, 2011 at 9:30 PM
> Subject: Re: Replacements in hgrc
> To: paul_nathan at selinc.co
> Cc: mercurial at selenic.com
> 
> 
> On Wed, Oct 12, 2011 at 7:36 PM,  <paul_nathan at selinc.com> wrote:
> > I am studying putting together a custom merge tool for an in-house 
data
> > store.
> > I am not prepared to roll it out to /usr/lib/...., so I attempted to 
put the
> > path in hgrc [merge-tools] as
> >
> > supertool.executable = ~/merger/mergetoolbin
> >
> > But that did not work, so I tried
> >
> > supertool.executable = $HOME/merger/mergetoolbin
> >
> > Which also did not work.
> 
> How unfortunate! I just peeked in the code, and indeed:
> merge-tool.TOOL.executable is not subject to environment variable or ~
> expansion. That in *spite* of the fact that the hgrc man page implies
> you can use ~. That inconsistency annoyed me enough that I started
> working on a patch. If I can add a useful test, and the patch is
> approved, this should make into Mercurial 2.0 in a few weeks.
> 
> But all is not lost: if you have the power to put this script in every
> user's ~/merger directory, do you not have the power to put it in
> their ~/bin? Then you just have to make sure everyone has ~/bin in
> their $PATH and you're fine.
> 
> Alternately, if you have access to /usr/local/bin or equivalent (by
> NFS perhaps?), then you could easily put your merge script there.
> 
> Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111013/a26404f8/attachment-0002.html>


More information about the Mercurial mailing list