equal
deleted
inserted
replaced
67 cwd = os.path.dirname(os.environ["TESTDIR"]) |
67 cwd = os.path.dirname(os.environ["TESTDIR"]) |
68 |
68 |
69 if not os.path.isdir(os.path.join(cwd, ".hg")): |
69 if not os.path.isdir(os.path.join(cwd, ".hg")): |
70 sys.exit(0) |
70 sys.exit(0) |
71 |
71 |
|
72 files_cmd = "hg files --print0 \"%s\"" % fileset |
|
73 |
|
74 if 'HGTEST_RESTOREENV' in os.environ: |
|
75 files_cmd = '. $HGTEST_RESTOREENV; ' + files_cmd |
|
76 |
72 files = subprocess.check_output( |
77 files = subprocess.check_output( |
73 "hg files --print0 \"%s\"" % fileset, |
78 files_cmd, |
74 shell=True, |
79 shell=True, |
75 cwd=cwd, |
80 cwd=cwd, |
76 ).split(b'\0') |
81 ).split(b'\0') |
77 |
82 |
78 if sys.version_info[0] >= 3: |
83 if sys.version_info[0] >= 3: |