diff mercurial/commands.py @ 13388:a184dbd9b2c5

localrepo: sort hg bookmark output sort bookmarks before we write them to stdout to get a predictable output.
author David Soria Parra <dsp@php.net>
date Fri, 11 Feb 2011 20:35:32 +0100
parents d4ab9486e514
children 3e66eec9a814
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -530,7 +530,7 @@
         if len(marks) == 0:
             ui.status(_("no bookmarks set\n"))
         else:
-            for bmark, n in marks.iteritems():
+            for bmark, n in sorted(marks.iteritems()):
                 if ui.configbool('bookmarks', 'track.current'):
                     current = repo._bookmarkcurrent
                     if bmark == current and n == cur: