[PATCH STABLE] setup/hg: handle hg being a symlink when appending relative libdir to sys.path

Thomas Arendsen Hein thomas at intevation.de
Thu Oct 21 14:12:44 CDT 2010


* L. David Baron <dbaron at dbaron.org> [20101021 19:23]:
> # HG changeset patch
> # User L. David Baron <dbaron at dbaron.org>
> # Date 1287680302 25200
> # Node ID 172c5e2d8baff6b65d09c779d64ae199b23eb886
> # Parent  6bf8d48bec8e1ab2e0462ce14a914d06e64f7117
> setup/hg: handle hg being a symlink when appending relative libdir to sys.path
> 
> Resolve symbolic links in the path to hg so that an hg that works when
> invoked directly will also work when invoked via a symlink to it.

I can't reproduce the problem, I often install hg in this way and
don't have problems with it:
/usr/local/bin/hg is a symlink to ../mercurial-tah/hg
and it just works, tested with version 1.6.4+185-c82cd7b08158 (and
many versions before that)

Regards,
Thomas

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


More information about the Mercurial-devel mailing list