mercurial/cmdutil.py
changeset 49771 e78a41686464
parent 49456 cdfba684b6a1
child 49959 c166b212bdee
--- a/mercurial/cmdutil.py	Tue Nov 29 13:07:16 2022 -0800
+++ b/mercurial/cmdutil.py	Tue Nov 29 15:41:28 2022 -0800
@@ -3019,6 +3019,8 @@
         commitphase = None
         if opts.get(b'secret'):
             commitphase = phases.secret
+        elif opts.get(b'draft'):
+            commitphase = phases.draft
         newid = repo.commitctx(new)
         ms.reset()