[PATCH 2 of 2] Treat extension load paths as relative to the defining hgrc

Thomas Arendsen Hein thomas at intevation.de
Mon Mar 3 13:13:52 CST 2008


* Jesse Glick <jesse.glick at sun.com> [20080303 19:14]:
> Thomas Arendsen Hein wrote:
> > the [paths] code looks relative to the repo root (or home)
> 
> That's not true. The path is resolved relative to the defining 
> configuration file. If I add
> 
> [paths]
> foo = ../foo
> 
> to my ~/.hgrc and
> 
> cd /space/src/hg
> hg paths
> 
> I see
> 
> foo = /home/jglick/../foo
> 
> So the new code is consistent with the existing semantics.

As I wrote in the line you quoted: "repo root (or home)"

Imagine having a ~/.hgrc.d/paths.rc and ~/.hgrc ... should paths
defined in one file be handled differently from those defined in the
other?

Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list