Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

setup: use liveversion() to retrieve version from live repo

Changeset 37b8f3b4fa13

Parent fb8960740a92

by Steve Borho

Changes to one file · Browse files at 37b8f3b4fa13 Showing diff from parent fb8960740a92 Diff from another changeset...

Change 1 of 1 Show Entire File setup.py Stacked
 
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
 
 
195
196
197
 
178
179
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
182
183
184
185
@@ -178,20 +178,8 @@
 version = ''    if os.path.isdir('.hg'): - env = os.environ - env.update({'HGRCPATH': '', 'LANGUAGE': 'C'}) - cmd = ['hg', 'id', '-i', '-t'] - l = runcmd(cmd, env).split() - while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags - l.pop() - if len(l) > 1: # tag found - version = l[-1] - 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}-'] - version = runcmd(cmd, env) + l[0] + from tortoisehg.util import version as _version + version = _version.liveversion()   if version.endswith('+'):   version += time.strftime('%Y%m%d')  elif os.path.exists('.hg_archival.txt'):