[PATCH 3 of 3] run-tests: redefine --with-hg so it takes the 'hg' script to run

Greg Ward greg-hg at gerg.ca
Mon Jun 1 08:12:18 CDT 2009


On Mon, Jun 1, 2009 at 6:31 AM, Patrick Mézard <pmezard at gmail.com> wrote:
>> +        # Deliberately override existing PYTHONPATH: do not want success
>> +        # to depend on what happens to be in caller's environment.
>> +        os.environ["PYTHONPATH"] = PYTHONDIR
>
> Under MacOSX, python bindings are put in /opt/subversion, and are no longer present in PYTHONPATH which fails all the svn tests. Is there any workaround for this?

Darn.  You just torpedoed my nice clean theoretical ideal of not
depending on the caller's environment.  The real world can be *so*
annoying.

I think the fix is to revert to the old behaviour of augmenting
PYTHONPATH, rather than replacing it.  I'll fire off a patch shortly;
can you test it?

Greg



More information about the Mercurial-devel mailing list