# HG changeset patch # User Martin Geisler # Date 1235495356 -3600 # Node ID e5627562b9f2ce6243bbf9a65291bf99562a73c0 # Parent 58125c27ddbe75fc0cc08bd39964ce43f42ca1b6 setup: run hg with empty HGRCPATH for robustness. Otherwise a bad hgrc file can make the version detection fail. diff -r 58125c27ddbe -r e5627562b9f2 setup.py --- a/setup.py Tue Feb 24 16:05:43 2009 +0100 +++ b/setup.py Tue Feb 24 18:09:16 2009 +0100 @@ -103,6 +103,7 @@ pypath = os.environ.get('PYTHONPATH', '') 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 l = os.popen(cmd).read().split() os.environ['PYTHONPATH'] = pypath