help: sort results from keyword search
authorMads Kiilerich <mads@kiilerich.com>
Wed, 13 Jun 2012 02:44:46 +0200
changeset 16949 66721a0d2249
parent 16948 a0cbbf78c31a
child 16951 bdf8c6c61c9b
help: sort results from keyword search
mercurial/commands.py
tests/test-help.t
--- 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
--- a/tests/test-help.t	Wed Jun 13 02:29:47 2012 +0200
+++ b/tests/test-help.t	Wed Jun 13 02:44:46 2012 +0200
@@ -790,9 +790,9 @@
   
   Commands:
   
-   update update working directory (or switch revisions)
+   clone  make a copy of an existing repository
    paths  show aliases for remote repositories
-   clone  make a copy of an existing repository
+   update update working directory (or switch revisions)
   
   Extensions: