Mercurial > evolve
changeset 2142:7dc66a526b21
stablerange: stop using '.node' in subrangesclosure
We access the range-head revision number by index and convert it on site.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 22 Mar 2017 06:02:45 +0100 |
parents | 647e222cd4ab |
children | 99cf2784e2a6 |
files | hgext3rd/evolve/stablerange.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 05:15:49 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 06:02:45 2017 +0100 @@ -144,7 +144,8 @@ ranges.add(r) toproceed.append(r) ranges = list(ranges) - ranges.sort(key=lambda r: (-len(r), r.node)) + n = repo.changelog.node + ranges.sort(key=lambda r: (-len(r), n(r[0]))) return ranges class stablerangecache(dict):