equal
deleted
inserted
replaced
1 #!/usr/bin/env python3 |
1 #!/usr/bin/env python3 |
2 |
2 |
3 from __future__ import absolute_import |
3 from __future__ import absolute_import |
4 |
4 |
5 import os |
5 import os |
|
6 import subprocess |
6 import sys |
7 import sys |
7 |
8 |
8 os.chdir(os.getenv('TESTTMP')) |
9 os.chdir(os.getenv('TESTTMP')) |
9 |
10 |
10 if sys.argv[1] != "user@dummy": |
11 if sys.argv[1] != "user@dummy": |
20 log.close() |
21 log.close() |
21 hgcmd = sys.argv[2] |
22 hgcmd = sys.argv[2] |
22 if os.name == 'nt': |
23 if os.name == 'nt': |
23 # hack to make simple unix single quote quoting work on windows |
24 # hack to make simple unix single quote quoting work on windows |
24 hgcmd = hgcmd.replace("'", '"') |
25 hgcmd = hgcmd.replace("'", '"') |
25 r = os.system(hgcmd) |
26 r = subprocess.call(hgcmd, shell=True) |
26 sys.exit(bool(r)) |
27 sys.exit(bool(r)) |