diff options
author | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> | 2010-05-25 19:14:23 +0200 |
---|---|---|
committer | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> | 2010-05-25 19:14:23 +0200 |
commit | 77c2d208ba58f7c0219c51eeb61022bb04503471 (patch) | |
tree | 7d790ffad2beb3e5f46218cc74f43e4710099b50 | |
parent | 578f3d3035c7bde8308bcaa81dce141c777cbe6d (diff) | |
download | setuptools-scm-77c2d208ba58f7c0219c51eeb61022bb04503471.tar.gz |
also use .dev for distances in version from hg
-rw-r--r-- | hgdistver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hgdistver.py b/hgdistver.py index c39b882..f5a7f78 100644 --- a/hgdistver.py +++ b/hgdistver.py @@ -43,7 +43,7 @@ def version_from_hg_id(cachefile=None): if l[0].endswith('+'): # propagate the dirty status to the tag version += '+' elif len(l) == 1: #no tag found - cmd = 'hg parents --template "{latesttag}+{latesttagdistance}-"' + cmd = 'hg parents --template "{latesttag}.dev{latesttagdistance}-"' version = commands.getoutput(cmd) + l[0] if version.endswith('+'): |