Mercurial > public > mercurial-scm > hg
diff hgext/split.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 | 42e2c7c52e1b |
line wrap: on
line diff
--- a/hgext/split.py Fri Oct 12 18:06:32 2018 +0200 +++ b/hgext/split.py Fri Oct 12 18:49:11 2018 +0200 @@ -44,12 +44,12 @@ # leave the attribute unspecified. testedwith = 'ships-with-hg-core' -@command('^split', +@command('split', [('r', 'rev', '', _("revision to split"), _('REV')), ('', 'rebase', True, _('rebase descendants after split')), ] + cmdutil.commitopts2, _('hg split [--no-rebase] [[-r] REV]'), - helpcategory=command.CATEGORY_CHANGE_MANAGEMENT) + helpcategory=command.CATEGORY_CHANGE_MANAGEMENT, helpbasic=True) def split(ui, repo, *revs, **opts): """split a changeset into smaller ones