[PATCH stable] shrink-revlog: adjust sys.path before importing mercurial

Dirkjan Ochtman dirkjan at ochtman.nl
Thu Jan 7 09:14:20 CST 2010


On Thu, Jan 7, 2010 at 15:36, Greg Ward <greg-hg at gerg.ca> wrote:
> # HG changeset patch
> # User Greg Ward <greg-hg at gerg.ca>
> # Date 1262874972 18000
> # Branch stable
> # Node ID a80f9801e730e29c69539a7aee6ddb3d28c1b61b
> # Parent  a474f950357be8acb8704f46b4443872d0461feb
> shrink-revlog: adjust sys.path before importing mercurial.
>
> This assumes the script is still in the contrib/ directory of a source
> tree.  It will make things more consistent and predictable in that case.

I just obviated this by making contrib/shrink-revlog.py an extension
(in 9d79b8f58bea).

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list