diff hgext/mq.py @ 18371:ff2c89ebf5d4

mq: stabilize update after strip of parent revision Strip will (if it updates) update to the parent of revs[0], where revs are the roots of the tree that is stripped. When revs was list(set) it was thus undefined which root parent it would update to. With sorted(set) it is at least stable what it updates to. (But it is very possible that another more useful and predictable behaviour could be defined ... such as updating to the tip-most surviving wd ancestor.)
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 15 Jan 2013 02:59:13 +0100
parents 6252b4f1c4b4
children 3e92772d5383
line wrap: on
line diff
--- a/hgext/mq.py	Wed Dec 12 02:38:14 2012 +0100
+++ b/hgext/mq.py	Tue Jan 15 02:59:13 2013 +0100
@@ -3032,7 +3032,7 @@
             del q.applied[start:end]
             q.savedirty()
 
-    revs = list(rootnodes)
+    revs = sorted(rootnodes)
     if update and opts.get('keep'):
         wlock = repo.wlock()
         try: