Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

hgversion: update version logic to understand recent hg versions

the latesttagdistance formula used to make hg version numbers is now
perfectly suited for version checks.

Changeset 345c6979b2b8

Parent 1376a14f1e81

by Steve Borho

Changes to one file · Browse files at 345c6979b2b8 Showing diff from parent 1376a14f1e81 Diff from another changeset...

 
18
19
20
21
22
23
24
 
25
26
27
 
18
19
20
 
 
 
21
22
23
24
25
@@ -18,10 +18,8 @@
   def checkhgversion(v):   """range check the Mercurial version""" - # this is a series of hacks, but Mercurial's versioning scheme - # doesn't lend itself to a "correct" solution. This will at least - # catch people who have old Mercurial packages.   reqver = ['1', '5'] + v = v.split('+')[0]   if not v or v == 'unknown' or len(v) >= 12:   # can't make any intelligent decisions about unknown or hashes   return