mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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.
This commit is contained in:
parent
53dbf005c3
commit
652c76f46a
@ -465,7 +465,8 @@ os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>"
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user