Mercurial > hg
changeset 16949:66721a0d2249
help: sort results from keyword search
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 13 Jun 2012 02:44:46 +0200 |
parents | a0cbbf78c31a |
children | bdf8c6c61c9b |
files | mercurial/commands.py tests/test-help.t |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
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
--- 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: