A simpler way to get changeset identification hash
This commit is contained in:
parent
bc4b3d0437
commit
eea9947caa
|
@ -30,10 +30,9 @@ localedir = '../po'
|
|||
version = '0.14.1.1'
|
||||
import subprocess
|
||||
try:
|
||||
node = subprocess.Popen('hg tip --template {node}', shell=True,
|
||||
node = subprocess.Popen('hg tip --template "{node|short}"', shell=True,
|
||||
stdout=subprocess.PIPE).communicate()[0]
|
||||
hgversion = node[:12]
|
||||
version += '-' + hgversion
|
||||
version += '-' + node
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue