fixup previous changesets (after forgot to amend).
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 22 Oct 2014 14:58:06 -0700
changeset 1135 db16c4ad15d0
parent 1134 7173c70ab2c3
child 1136 e9900a4af996
fixup previous changesets (after forgot to amend).
hgext/evolve.py
--- a/hgext/evolve.py	Mon Oct 20 15:59:34 2014 -0700
+++ b/hgext/evolve.py	Wed Oct 22 14:58:06 2014 -0700
@@ -1655,8 +1655,10 @@
                            "ancestors(bookmark() and not bookmark(%s)) - "
                            "obsolete()",
                            mark, mark, mark)
+        revs = set(revs)
         revs.update(set(rsrevs))
-    return marks,revs
+        revs = sorted(revs)
+    return marks, revs
 
 def _deletebookmark(ui, marks, mark):
     del marks[mark]
@@ -1737,7 +1739,9 @@
             raise util.Abort('nothing to prune')
 
         # defines successors changesets
-        sucs = tuple(repo[n] for n in scmutil.revrange(repo, succs))
+        sucs = scmutil.revrange(repo, succs)
+        sucs.sort()
+        sucs = tuple(repo[n] for n in sucs)
         if not biject and len(sucs) > 1 and len(precs) > 1:
             msg = "Can't use multiple successors for multiple precursors"
             raise util.Abort(msg)