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'
|
version = '0.14.1.1'
|
||||||
import subprocess
|
import subprocess
|
||||||
try:
|
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]
|
stdout=subprocess.PIPE).communicate()[0]
|
||||||
hgversion = node[:12]
|
version += '-' + node
|
||||||
version += '-' + hgversion
|
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue