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, helpbasic=True) |
52 def split(ui, repo, *revs, **opts): |
53 def split(ui, repo, *revs, **opts): |
53 """split a changeset into smaller ones |
54 """split a changeset into smaller ones |
54 |
55 |
55 Repeatedly prompt changes and commit message for new changesets until there |
56 Repeatedly prompt changes and commit message for new changesets until there |
56 is nothing left in the original changeset. |
57 is nothing left in the original changeset. |