comparison hgext/fastannotate/commands.py @ 40295:fa88170c10bb

help: adding a proper declaration for shortlist/basic commands (API) We previously used the '^' prefix to indicate that a command should be shown on the short list (shown for just "hg"), but that's a horrible hack, so I'm removing it. Differential Revision: https://phab.mercurial-scm.org/D5069
author Rodrigo Damazio <rdamazio@google.com>
date Fri, 12 Oct 2018 18:49:11 +0200
parents 24e493ec2229
children 901f6ef670ca
comparison
equal deleted inserted replaced
40294:fabbf9310025 40295:fa88170c10bb
220 220
221 return orig(ui, repo, *pats, **opts) 221 return orig(ui, repo, *pats, **opts)
222 222
223 def registercommand(): 223 def registercommand():
224 """register the fastannotate command""" 224 """register the fastannotate command"""
225 name = '^fastannotate|fastblame|fa' 225 name = 'fastannotate|fastblame|fa'
226 command(name, **fastannotatecommandargs)(fastannotate) 226 command(name, helpbasic=True, **fastannotatecommandargs)(fastannotate)
227 227
228 def wrapdefault(): 228 def wrapdefault():
229 """wrap the default annotate command, to be aware of the protocol""" 229 """wrap the default annotate command, to be aware of the protocol"""
230 extensions.wrapcommand(commands.table, 'annotate', _annotatewrapper) 230 extensions.wrapcommand(commands.table, 'annotate', _annotatewrapper)
231 231