Changes in tools/config.py [0a0b3d8:476ac3b] in mainline
- File:
-
- 1 edited
-
tools/config.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tools/config.py
r0a0b3d8 r476ac3b 460 460 461 461 try: 462 version = subprocess.Popen([' git', 'log', '-1', '--pretty=%h'], stdout = subprocess.PIPE).communicate()[0].decode().strip()462 version = subprocess.Popen(['bzr', 'version-info', '--custom', '--template={clean}:{revno}:{revision_id}'], stdout = subprocess.PIPE).communicate()[0].decode().split(':') 463 463 sys.stderr.write("ok\n") 464 464 except: 465 version = None465 version = [1, "unknown", "unknown"] 466 466 sys.stderr.write("failed\n") 467 467 468 if (not strip_rev_info) and (version is not None): 469 revision = version 468 if (not strip_rev_info) and (len(version) == 3): 469 revision = version[1] 470 if version[0] != 1: 471 revision += 'M' 472 revision += ' (%s)' % version[2] 470 473 else: 471 474 revision = None
Note:
See TracChangeset
for help on using the changeset viewer.
