add hg revision in Gajim version for hg users too

This commit is contained in:
Yann Leboulanger 2010-08-09 14:42:55 +02:00
parent ed8ec75c52
commit 6c5565bfe2
1 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,13 @@ basedir = '../'
localedir = '../po'
version = '0.13.90'
import subprocess
try:
hgversion = subprocess.Popen('hexdump -n6 -e\'6/1 "%02x"\' ../.hg/dirstate',
shell=True, stdout=subprocess.PIPE).communicate()[0]
version += '-' + hgversion
except Exception:
pass
import sys, os.path
for base in ('.', 'common'):