diff hggit/git_handler.py @ 622:09028a1e9895

git_handler: iterate over new refs in sorted order to stabilize test output An earlier patch already fixes the test expectations (oops), so this just makes sure the tests always pass.
author Augie Fackler <raf@durin42.com>
date Fri, 13 Dec 2013 13:02:08 -0500 (2013-12-13)
parents 1d326a57e2dd
children 3ff09f0fac7a
line wrap: on
line diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -278,7 +278,7 @@
         remote_name = self.remote_name(remote)
 
         if remote_name and new_refs:
-            for ref, new_sha in new_refs.iteritems():
+            for ref, new_sha in sorted(new_refs.iteritems()):
                 old_sha = old_refs.get(ref)
                 if old_sha is None:
                     if self.ui.verbose: