36 ('e', 'edit', None, _('invoke editor on commit messages')), |
36 ('e', 'edit', None, _('invoke editor on commit messages')), |
37 ('i', 'interactive', None, _('use interactive mode')), |
37 ('i', 'interactive', None, _('use interactive mode')), |
38 ('n', 'note', '', _('store a note on the amend')), |
38 ('n', 'note', '', _('store a note on the amend')), |
39 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2, |
39 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2, |
40 _('[OPTION]... [FILE]...'), |
40 _('[OPTION]... [FILE]...'), |
|
41 helpcategory=command.CATEGORY_COMMITTING, |
41 inferrepo=True) |
42 inferrepo=True) |
42 def amend(ui, repo, *pats, **opts): |
43 def amend(ui, repo, *pats, **opts): |
43 """amend the working copy parent with all or specified outstanding changes |
44 """amend the working copy parent with all or specified outstanding changes |
44 |
45 |
45 Similar to :hg:`commit --amend`, but reuse the commit message without |
46 Similar to :hg:`commit --amend`, but reuse the commit message without |