Show More
@@ -437,6 +437,9 b" elif os.path.exists('.hg_archival.txt'):" | |||||
437 | version = '%(latesttag)s+hg%(latesttagdistance)s.%(node).12s' % kw |
|
437 | version = '%(latesttag)s+hg%(latesttagdistance)s.%(node).12s' % kw | |
438 | else: |
|
438 | else: | |
439 | version = '0+hg' + kw.get('node', '')[:12] |
|
439 | version = '0+hg' + kw.get('node', '')[:12] | |
|
440 | elif os.path.exists('mercurial/__version__.py'): | |||
|
441 | data = open('mercurial/__version__.py').read() | |||
|
442 | version = re.search('version = b"(.*)"', data).group(1) | |||
440 |
|
443 | |||
441 | if version: |
|
444 | if version: | |
442 | versionb = version |
|
445 | versionb = version |
General Comments 0
You need to be logged in to leave comments.
Login now