summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-08-05 23:47:19 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-08-05 23:47:19 +0200
commitc193aaf3ed837487ab79a2ecbe06679dbbdf2cf7 (patch)
tree5d5056b4ef4dbaf9be882b38f68ea4fcecc972b6
parent653bf6ef38cfb0b643f3576a65c2300becebeb8b (diff)
downloadsetuptools-scm-c193aaf3ed837487ab79a2ecbe06679dbbdf2cf7.tar.gz
use custom shell escape for the hg test wrapper
-rw-r--r--test_hgdistver.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test_hgdistver.py b/test_hgdistver.py
index 519ca86..57f70fd 100644
--- a/test_hgdistver.py
+++ b/test_hgdistver.py
@@ -34,11 +34,8 @@ class sbrepo(object):
self._hg('up', rev)
def _hg(self, *args):
- import sys
- return call(
- ['hg'] + [str(arg) for arg in args],
- cwd=str(self.path),
- )
+ cmd = ' '.join(['hg'] + [repr(str(arg)) for arg in args])
+ return call(cmd, cwd=str(self.path), shell=1)
def join(self, name):
return self.path.join(name)