summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-27 10:39:43 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-27 10:39:43 +0200
commitf1073eeadc0882176b05ed7ca89384a07a86c912 (patch)
tree32768094e70293b7a89eb5289b3efbee42e109ff
parentf1c35f3822abf02344adbca0e76f58199d3ff072 (diff)
downloadsetuptools-scm-0.6.tar.gz
fix issues with hg 1.5 parent usage0.6
-rw-r--r--hgdistver.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/hgdistver.py b/hgdistver.py
index accb714..f29e2b3 100644
--- a/hgdistver.py
+++ b/hgdistver.py
@@ -33,8 +33,10 @@ def version_from_hg_id(cachefile=None):
def version_from_hg15_parents(cachefile=None):
if os.path.isdir('.hg'):
node = commands.getoutput('hg id -i')
+ if node == '000000000000+':
+ return '0.0.dev0-' + node
- cmd = 'hg parents --template "{latesttag} {latesttagdistance}'
+ cmd = 'hg parents --template "{latesttag} {latesttagdistance}"'
out = commands.getoutput(cmd)
try:
tag, dist = out.split()