[PATCH] run-tests: compare absolute paths in _checkhglib
Idan Kamara
idankk86 at gmail.com
Sat May 7 13:02:09 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1304791003 -10800
# Node ID e3aab6097c901c22f6bef796004b79a1cfb4c897
# Parent 45f7aa35f2fd288457d1741732d4add210c308bd
run-tests: compare absolute paths in _checkhglib
diff -r 45f7aa35f2fd -r e3aab6097c90 tests/run-tests.py
--- a/tests/run-tests.py Fri May 06 19:03:45 2011 +0300
+++ b/tests/run-tests.py Sat May 07 20:56:43 2011 +0300
@@ -902,7 +902,7 @@
the one we expect it to be. If not, print a warning to stderr."""
expecthg = os.path.join(PYTHONDIR, 'mercurial')
actualhg = _gethgpath()
- if actualhg != expecthg:
+ if os.path.abspath(actualhg) != os.path.abspath(expecthg):
sys.stderr.write('warning: %s with unexpected mercurial lib: %s\n'
' (expected %s)\n'
% (verb, actualhg, expecthg))
More information about the Mercurial-devel
mailing list