diff -r f0e9dda408b3 -r e78a41686464 hgext/amend.py --- a/hgext/amend.py Tue Nov 29 13:07:16 2022 -0800 +++ b/hgext/amend.py Tue Nov 29 15:41:28 2022 -0800 @@ -46,6 +46,7 @@ _(b'mark a branch as closed, hiding it from the branch list'), ), (b's', b'secret', None, _(b'use the secret phase for committing')), + (b'', b'draft', None, _(b'use the draft phase for committing')), (b'n', b'note', b'', _(b'store a note on the amend')), ] + cmdutil.walkopts @@ -64,6 +65,7 @@ See :hg:`help commit` for more details. """ + cmdutil.check_at_most_one_arg(opts, 'draft', 'secret') cmdutil.check_note_size(opts) with repo.wlock(), repo.lock():