diff mercurial/localrepo.py @ 11047:c7dbd6c4877a

tags: return tags in sorted order This makes log and summary have less arbitrary tag ordering and also groups similar tags together, such as the mq tags.
author Eric Eisner <ede@mit.edu>
date Mon, 26 Apr 2010 15:58:36 -0400
parents 3213e8947975
children eb23c876c111
line wrap: on
line diff
--- a/mercurial/localrepo.py	Mon Apr 26 04:01:13 2010 +0200
+++ b/mercurial/localrepo.py	Mon Apr 26 15:58:36 2010 -0400
@@ -315,6 +315,8 @@
             self.nodetagscache = {}
             for t, n in self.tags().iteritems():
                 self.nodetagscache.setdefault(n, []).append(t)
+            for tags in self.nodetagscache.itervalues():
+                tags.sort()
         return self.nodetagscache.get(node, [])
 
     def _branchtags(self, partial, lrev):