Mercurial > public > mercurial-scm > hg
diff hgext/amend.py @ 34795:530b7361e3a9
amend: add a flag `-n/--note` to store note with amend
This patch utilises the functionality added in previous patches and adds a flag
to amend command in hgext/amend to add a note to the amend. Since the note is
stored in the obsmarker metadata, this will only be useful when obsmarker
creation is enabled, otherwise this is no-op.
Not adding releasenotes part as we yet don't have a functionality in core to
show the note.
Differential Revision: https://phab.mercurial-scm.org/D1095
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 15 Oct 2017 19:29:56 +0530 |
parents | 0d5afd360e9e |
children | 554885e10868 |
line wrap: on
line diff
--- a/hgext/amend.py Sun Oct 15 15:32:03 2017 +0530 +++ b/hgext/amend.py Sun Oct 15 19:29:56 2017 +0530 @@ -33,6 +33,7 @@ _('mark new/missing files as added/removed before committing')), ('e', 'edit', None, _('invoke editor on commit messages')), ('i', 'interactive', None, _('use interactive mode')), + ('n', 'note', '', _('store a note on the amend')), ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2, _('[OPTION]... [FILE]...'), inferrepo=True)