Show More
@@ -108,15 +108,15 b" if os.path.isdir('.hg'):" | |||
|
108 | 108 | os.environ['HGRCPATH'] = '' # do not read any config file |
|
109 | 109 | cmd = [sys.executable, 'hg', 'id', '-i', '-t'] |
|
110 | 110 | |
|
111 |
|
|
|
112 | stderr=subprocess.PIPE).communicate() | |
|
111 | out, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, | |
|
112 | stderr=subprocess.PIPE).communicate() | |
|
113 | 113 | os.environ['PYTHONPATH'] = pypath |
|
114 | 114 | |
|
115 | if e: | |
|
115 | if err: | |
|
116 | 116 | sys.stderr.write('warning: could not establish Mercurial ' |
|
117 | 'version:\n%s\n' % e) | |
|
117 | 'version:\n%s\n' % err) | |
|
118 | 118 | else: |
|
119 |
l = |
|
|
119 | l = out.split() | |
|
120 | 120 | while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags |
|
121 | 121 | l.pop() |
|
122 | 122 | if l: |
General Comments 0
You need to be logged in to leave comments.
Login now