comparison 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
comparison
equal deleted inserted replaced
16948:a0cbbf78c31a 16949:66721a0d2249
3329 ('commands', _('Commands')), 3329 ('commands', _('Commands')),
3330 ('extensions', _('Extensions')), 3330 ('extensions', _('Extensions')),
3331 ('extensioncommands', _('Extension Commands'))): 3331 ('extensioncommands', _('Extension Commands'))):
3332 if matches[t]: 3332 if matches[t]:
3333 rst.append('%s:\n\n' % title) 3333 rst.append('%s:\n\n' % title)
3334 rst.extend(minirst.maketable(matches[t], 1)) 3334 rst.extend(minirst.maketable(sorted(matches[t]), 1))
3335 rst.append('\n') 3335 rst.append('\n')
3336 elif name and name != 'shortlist': 3336 elif name and name != 'shortlist':
3337 i = None 3337 i = None
3338 if unknowncmd: 3338 if unknowncmd:
3339 queries = (helpextcmd,) 3339 queries = (helpextcmd,)