diff mercurial/commands.py @ 16949:66721a0d2249

help: sort results from keyword search
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 13 Jun 2012 02:44:46 +0200
parents ee7dd2307031
children 634ad0b24ba2
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Jun 13 02:29:47 2012 +0200
+++ b/mercurial/commands.py	Wed Jun 13 02:44:46 2012 +0200
@@ -3331,7 +3331,7 @@
                          ('extensioncommands', _('Extension Commands'))):
             if matches[t]:
                 rst.append('%s:\n\n' % title)
-                rst.extend(minirst.maketable(matches[t], 1))
+                rst.extend(minirst.maketable(sorted(matches[t]), 1))
                 rst.append('\n')
     elif name and name != 'shortlist':
         i = None