hgext/amend.py
changeset 49772 e78a41686464
parent 48875 6000f5b25c9b
child 51859 f4733654f144
--- 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():