[PATCH] [PATCH] (Resend to fix line wrap) Account for symlinks when setting up HGTMP

jim.correia at gmail.com jim.correia at gmail.com
Sun Jan 25 13:22:00 CST 2009


# HG changeset patch
# User Jim Correia <jim.correia at pobox.com>
# Date 1232910761 18000
# Node ID 2b594e0928af1236d3c5ebe8dca46af5b36813be
# Parent  752325f2208d4279a4fc892adddd1bfbc61b0ad1
Account for symlinks when setting up HGTMP.

On Mac OS X, several top-level directories are actually symlinks into
/private. When setting up HGTMP, expand the symlinks so that later
comparisons to or substituations with the actual path work as expected.

diff -r 752325f2208d -r 2b594e0928af tests/run-tests.py
--- a/tests/run-tests.py	Sun Jan 25 12:09:51 2009 -0600
+++ b/tests/run-tests.py	Sun Jan 25 14:12:41 2009 -0500
@@ -462,7 +462,8 @@
 os.environ['CDPATH'] = ''
 
 TESTDIR = os.environ["TESTDIR"] = os.getcwd()
-HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.', options.tmpdir)
+HGTMP = os.environ['HGTMP'] = os.path.realpath(tempfile.mkdtemp('', 'hgtests.',
+                                               options.tmpdir))
 DAEMON_PIDS = None
 HGRCPATH = None
 


More information about the Mercurial-devel mailing list