Show More
@@ -4,7 +4,7 b' from __future__ import absolute_import' | |||||
4 | from __future__ import print_function |
|
4 | from __future__ import print_function | |
5 |
|
5 | |||
6 | import doctest |
|
6 | import doctest | |
7 | import os |
|
7 | import os.path | |
8 | import re |
|
8 | import re | |
9 | import subprocess |
|
9 | import subprocess | |
10 | import sys |
|
10 | import sys | |
@@ -72,6 +72,9 b" fileset = 'set:(**.py)'" | |||||
72 |
|
72 | |||
73 | cwd = os.path.dirname(os.environ["TESTDIR"]) |
|
73 | cwd = os.path.dirname(os.environ["TESTDIR"]) | |
74 |
|
74 | |||
|
75 | if not os.path.isdir(os.path.join(cwd, ".hg")): | |||
|
76 | sys.exit(0) | |||
|
77 | ||||
75 | files = subprocess.check_output( |
|
78 | files = subprocess.check_output( | |
76 | "hg files --print0 \"%s\"" % fileset, shell=True, cwd=cwd, |
|
79 | "hg files --print0 \"%s\"" % fileset, shell=True, cwd=cwd, | |
77 | ).split(b'\0') |
|
80 | ).split(b'\0') |
General Comments 0
You need to be logged in to leave comments.
Login now