A simpler way to get changeset identification hash

This commit is contained in:
Denis Fomin 2011-03-21 00:25:30 +03:00
parent bc4b3d0437
commit eea9947caa
1 changed files with 2 additions and 3 deletions

View File

@ -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