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