Show More
@@ -165,10 +165,10 b' def runhg(cmd, env):' | |||
|
165 | 165 | return '' |
|
166 | 166 | return out |
|
167 | 167 | |
|
168 | version = '' | |
|
169 | 168 | |
|
170 | # Execute hg out of this directory with a custom environment which takes care | |
|
171 | # to not use any hgrc files and do no localization. | |
|
169 | def gethgenv(): | |
|
170 | # Execute hg out of this directory with a custom environment which takes | |
|
171 | # care to not use any hgrc files and do no localization. | |
|
172 | 172 | env = {'HGMODULEPOLICY': 'py', |
|
173 | 173 | 'HGRCPATH': '', |
|
174 | 174 | 'LANGUAGE': 'C', |
@@ -180,6 +180,9 b" if 'SystemRoot' in os.environ:" | |||
|
180 | 180 | # https://bugs.python.org/issue13524#msg148850 |
|
181 | 181 | env['SystemRoot'] = os.environ['SystemRoot'] |
|
182 | 182 | |
|
183 | env = gethgenv() | |
|
184 | version = '' | |
|
185 | ||
|
183 | 186 | if os.path.isdir('.hg'): |
|
184 | 187 | cmd = [sys.executable, 'hg', 'log', '-r', '.', '--template', '{tags}\n'] |
|
185 | 188 | numerictags = [t for t in runhg(cmd, env).split() if t[0:1].isdigit()] |
General Comments 0
You need to be logged in to leave comments.
Login now