30 commitopts2 = cmdutil.commitopts2 |
30 commitopts2 = cmdutil.commitopts2 |
31 commitopts3 = [('r', 'rev', [], |
31 commitopts3 = [('r', 'rev', [], |
32 _('revision to check'), _('REV'))] |
32 _('revision to check'), _('REV'))] |
33 |
33 |
34 @command('close-head|close-heads', commitopts + commitopts2 + commitopts3, |
34 @command('close-head|close-heads', commitopts + commitopts2 + commitopts3, |
35 _('[OPTION]... [REV]...'), inferrepo=True) |
35 _('[OPTION]... [REV]...'), |
|
36 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT, |
|
37 inferrepo=True) |
36 def close_branch(ui, repo, *revs, **opts): |
38 def close_branch(ui, repo, *revs, **opts): |
37 """close the given head revisions |
39 """close the given head revisions |
38 |
40 |
39 This is equivalent to checking out each revision in a clean tree and running |
41 This is equivalent to checking out each revision in a clean tree and running |
40 ``hg commit --close-branch``, except that it doesn't change the working |
42 ``hg commit --close-branch``, except that it doesn't change the working |