Fix corner case version calculation

This commit is contained in:
Mark Nauwelaerts
2017-03-13 20:53:25 +01:00
parent 0bfbc0da4b
commit 40c9eafcc9
2 changed files with 2 additions and 2 deletions

View File

@@ -916,7 +916,7 @@ def init_version():
version, _, extra = util.version().partition('+')
version = list(int(e) for e in version.split('.'))
if extra:
version[1] += 1
version[-1] += 1
hg_version = tuple(version)
except:
hg_version = None