Skip to content
Snippets Groups Projects
Commit eea9947c authored by Dicson's avatar Dicson
Browse files

A simpler way to get changeset identification hash

parent bc4b3d04
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,9 @@
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment