From eea9947caae20d2fc7380e8e9d0ef241480aa2db Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Mon, 21 Mar 2011 00:25:30 +0300 Subject: [PATCH] A simpler way to get changeset identification hash --- src/common/defs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/defs.py b/src/common/defs.py index c98fc3c5c..885de925d 100644 --- a/src/common/defs.py +++ b/src/common/defs.py @@ -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