Mercurial > public > mercurial-scm > hg
diff hgext/absorb.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 | c303d65d2e34 |
children | e993a86cfcb8 |
line wrap: on
line diff
--- a/hgext/absorb.py Fri Oct 12 18:06:32 2018 +0200 +++ b/hgext/absorb.py Fri Oct 12 18:49:11 2018 +0200 @@ -982,7 +982,7 @@ ui.write(_('nothing applied\n')) return state -@command('^absorb', +@command('absorb', [('a', 'apply-changes', None, _('apply changes without prompting for confirmation')), ('p', 'print-changes', None, @@ -994,7 +994,8 @@ '(EXPERIMENTAL)')), ] + commands.dryrunopts + commands.templateopts + commands.walkopts, _('hg absorb [OPTION] [FILE]...'), - helpcategory=command.CATEGORY_COMMITTING) + helpcategory=command.CATEGORY_COMMITTING, + helpbasic=True) def absorbcmd(ui, repo, *pats, **opts): """incorporate corrections into the stack of draft changesets