[PATCH] setup: use explicit repo root for id command

Steve Borho steve at borho.org
Mon Apr 13 16:10:33 CDT 2009


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1239657012 18000
# Node ID 13efadd00912cbf142776b0f9a7efd2a07bfb525
# Parent  aece3c9e62f1a685e4cebd3ecf0b22e1c8101ae1
setup: use explicit repo root for id command

prevents a repository in a parent directory from being
found and supplying a new repository version when hg was
distributed as a tar file.

diff -r aece3c9e62f1 -r 13efadd00912 setup.py
--- a/setup.py	Mon Apr 13 21:57:17 2009 +0200
+++ b/setup.py	Mon Apr 13 16:10:12 2009 -0500
@@ -104,7 +104,7 @@
     purepath = os.path.join('mercurial', 'pure')
     os.environ['PYTHONPATH'] = os.pathsep.join(['mercurial', purepath, pypath])
     os.environ['HGRCPATH'] = '' # do not read any config file
-    cmd = '%s hg id -it' % sys.executable
+    cmd = '%s hg -R . id -it' % sys.executable
     version = None
 
     try:


More information about the Mercurial-devel mailing list