changeset 3313:efceae0bfa35

stablesort: avoid attempting to sort a tuple This seems silly.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 18 Dec 2017 08:36:52 +0100
parents 8e9ea8307cdd
children 110202a00de2
files hgext3rd/evolve/stablesort.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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])