Show More
@@ -184,6 +184,12 b" if os.path.isdir('.hg'):" | |||
|
184 | 184 | cmd = [sys.executable, 'hg', 'log', '-r', '.', '--template', '{tags}\n'] |
|
185 | 185 | numerictags = [t for t in runhg(cmd, env).split() if t[0:1].isdigit()] |
|
186 | 186 | hgid = runhg([sys.executable, 'hg', 'id', '-i'], env).strip() |
|
187 | if not hgid: | |
|
188 | # Bail out if hg is having problems interacting with this repository, | |
|
189 | # rather than falling through and producing a bogus version number. | |
|
190 | # Continuing with an invalid version number will break extensions | |
|
191 | # that define minimumhgversion. | |
|
192 | raise SystemExit('Unable to determine hg version from local repository') | |
|
187 | 193 | if numerictags: # tag(s) found |
|
188 | 194 | version = numerictags[-1] |
|
189 | 195 | if hgid.endswith('+'): # propagate the dirty status to the tag |
General Comments 0
You need to be logged in to leave comments.
Login now