diff hgext/histedit.py @ 17084:69dae7982c85

histedit: use stable iteration order for processing bookmarks Random dict iteration order caused test failure in test-histedit-bookmark-motion.t.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 30 Jun 2012 03:34:41 +0200
parents 2b1c78674230
children ead4eb5b03c9
line wrap: on
line diff
--- a/hgext/histedit.py	Thu Jun 28 08:45:38 2012 -0500
+++ b/hgext/histedit.py	Sat Jun 30 03:34:41 2012 +0200
@@ -476,7 +476,7 @@
             newtip = sorted(replacemap.values(), key=repo.changelog.rev)[-1]
             copybms(oldtip, newtip)
 
-            for old, new in replacemap.iteritems():
+            for old, new in sorted(replacemap.iteritems()):
                 copybms(old, new)
                 # TODO update mq state