comparison 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
comparison
equal deleted inserted replaced
40294:fabbf9310025 40295:fa88170c10bb
42 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 42 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
43 # be specifying the version(s) of Mercurial they are tested with, or 43 # be specifying the version(s) of Mercurial they are tested with, or
44 # leave the attribute unspecified. 44 # leave the attribute unspecified.
45 testedwith = 'ships-with-hg-core' 45 testedwith = 'ships-with-hg-core'
46 46
47 @command('^split', 47 @command('split',
48 [('r', 'rev', '', _("revision to split"), _('REV')), 48 [('r', 'rev', '', _("revision to split"), _('REV')),
49 ('', 'rebase', True, _('rebase descendants after split')), 49 ('', 'rebase', True, _('rebase descendants after split')),
50 ] + cmdutil.commitopts2, 50 ] + cmdutil.commitopts2,
51 _('hg split [--no-rebase] [[-r] REV]'), 51 _('hg split [--no-rebase] [[-r] REV]'),
52 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT) 52 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT, helpbasic=True)
53 def split(ui, repo, *revs, **opts): 53 def split(ui, repo, *revs, **opts):
54 """split a changeset into smaller ones 54 """split a changeset into smaller ones
55 55
56 Repeatedly prompt changes and commit message for new changesets until there 56 Repeatedly prompt changes and commit message for new changesets until there
57 is nothing left in the original changeset. 57 is nothing left in the original changeset.