mercurial python module is not installed in site-packages under windows. use hg binary instead to get current revision
This commit is contained in:
parent
f4e0992e9c
commit
8af6bd2aae
|
@ -30,11 +30,9 @@ localedir = '../po'
|
||||||
version = '0.13.90.1'
|
version = '0.13.90.1'
|
||||||
import subprocess
|
import subprocess
|
||||||
try:
|
try:
|
||||||
from mercurial import ui, hg
|
node = subprocess.Popen('hg tip --template {node}', shell=True,
|
||||||
from mercurial.context import hex as hex_
|
stdout=subprocess.PIPE).communicate()[0]
|
||||||
repo = hg.repository(ui.ui(), '..')
|
hgversion = node[:12]
|
||||||
node = repo['tip'].node()
|
|
||||||
hgversion = hex_(node)[:12]
|
|
||||||
version += '-' + hgversion
|
version += '-' + hgversion
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue