# HG changeset patch # User Pierre-Yves David # Date 1513582612 -3600 # Node ID efceae0bfa355d6ac03334eb4102792920a3f164 # Parent 8e9ea8307cdd04903849d085b8b9534098414cc7 stablesort: avoid attempting to sort a tuple This seems silly. diff -r 8e9ea8307cdd -r efceae0bfa35 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])