Show More
@@ -337,8 +337,12 b" if os.path.isdir('.hg'):" | |||
|
337 | 337 | else: # no tag found |
|
338 | 338 | ltagcmd = ['parents', '--template', '{latesttag}'] |
|
339 | 339 | ltag = sysstr(hg.run(ltagcmd)) |
|
340 | if not ltag: | |
|
341 | ltag = 'null' | |
|
340 | 342 | changessincecmd = ['log', '-T', 'x\n', '-r', "only(.,'%s')" % ltag] |
|
341 | 343 | changessince = len(hg.run(changessincecmd).splitlines()) |
|
344 | if ltag == 'null': | |
|
345 | ltag = '0.0' | |
|
342 | 346 | version = '%s+hg%s.%s' % (ltag, changessince, hgid) |
|
343 | 347 | if version.endswith('+'): |
|
344 | 348 | version = version[:-1] + 'local' + time.strftime('%Y%m%d') |
General Comments 0
You need to be logged in to leave comments.
Login now