mercurial/branchmap.py
changeset 18357 a4ab37ca887b
parent 18307 0eed2546118a
child 18451 d6b3b36f1db2
--- a/mercurial/branchmap.py	Wed Dec 12 02:38:14 2012 +0100
+++ b/mercurial/branchmap.py	Tue Jan 15 02:59:12 2013 +0100
@@ -135,7 +135,7 @@
             if self.filteredhash is not None:
                 cachekey.append(hex(self.filteredhash))
             f.write(" ".join(cachekey) + '\n')
-            for label, nodes in self.iteritems():
+            for label, nodes in sorted(self.iteritems()):
                 for node in nodes:
                     f.write("%s %s\n" % (hex(node), encoding.fromlocal(label)))
             f.close()