Show More
@@ -133,14 +133,13 b' def runhg(cmd, env):' | |||
|
133 | 133 | |
|
134 | 134 | version = '' |
|
135 | 135 | |
|
136 | env = {'HGRCPATH': '', 'LANGUAGE': 'C'} | |
|
137 | ||
|
138 | if os.path.isdir('.hg'): | |
|
139 | 136 |
|
|
140 | 137 |
|
|
141 | 138 |
|
|
142 | 139 |
|
|
143 |
|
|
|
140 | env = {'PYTHONPATH': os.pathsep.join(pypath), | |
|
141 | 'HGRCPATH': '', | |
|
142 | 'LANGUAGE': 'C'} | |
|
144 | 143 |
|
|
145 | 144 |
|
|
146 | 145 |
|
@@ -148,6 +147,8 b" if os.path.isdir('.hg'):" | |||
|
148 | 147 |
|
|
149 | 148 |
|
|
150 | 149 |
|
|
150 | ||
|
151 | if os.path.isdir('.hg'): | |
|
151 | 152 | cmd = [sys.executable, 'hg', 'id', '-i', '-t'] |
|
152 | 153 | l = runhg(cmd, env).split() |
|
153 | 154 | while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags |
General Comments 0
You need to be logged in to leave comments.
Login now