stablesort: avoid attempting to sort a tuple
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 18 Dec 2017 08:36:52 +0100
changeset 3313 efceae0bfa35
parent 3312 8e9ea8307cdd
child 3314 110202a00de2
stablesort: avoid attempting to sort a tuple This seems silly.
hgext3rd/evolve/stablesort.py
--- a/hgext3rd/evolve/stablesort.py	Mon Dec 18 07:20:14 2017 +0100
+++ b/hgext3rd/evolve/stablesort.py	Mon Dec 18 08:36:52 2017 +0100
@@ -281,7 +281,7 @@
         ps = filterparents(parents(ps[0]))
     top.reverse()
     if len(ps) == 2:
-        ps.sort(key=tiebreaker)
+        ps = sorted(ps, key=tiebreaker)
 
         # get the part from the highest parent. This is the part that changes
         mid_revs = repo.revs('only(%d, %d)', ps[1], ps[0])