Mercurial > hg
comparison hgext/amend.py @ 42932:e4803231f538
amend: add option to update to the current user
This is also from the evolve extension's version of amend. A side effect of
this refactoring is for uncommit to support `rewrite.update-timestamp`.
Differential Revision: https://phab.mercurial-scm.org/D6853
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 14 Sep 2019 15:13:16 -0400 |
parents | 4145fd3569c3 |
children | 7e9997041781 |
comparison
equal
deleted
inserted
replaced
42931:181ee2118a96 | 42932:e4803231f538 |
---|---|
34 [('A', 'addremove', None, | 34 [('A', 'addremove', None, |
35 _('mark new/missing files as added/removed before committing')), | 35 _('mark new/missing files as added/removed before committing')), |
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 ('D', 'currentdate', None, | 39 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2 |
40 _('record the current date as commit date')), | 40 + cmdutil.commitopts3, |
41 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2, | |
42 _('[OPTION]... [FILE]...'), | 41 _('[OPTION]... [FILE]...'), |
43 helpcategory=command.CATEGORY_COMMITTING, | 42 helpcategory=command.CATEGORY_COMMITTING, |
44 inferrepo=True) | 43 inferrepo=True) |
45 def amend(ui, repo, *pats, **opts): | 44 def amend(ui, repo, *pats, **opts): |
46 """amend the working copy parent with all or specified outstanding changes | 45 """amend the working copy parent with all or specified outstanding changes |