mercurial/cmdutil.py
changeset 49883 e78a41686464
parent 49480 cdfba684b6a1
child 50022 c166b212bdee
equal deleted inserted replaced
49882:f0e9dda408b3 49883:e78a41686464
  3017             return old.node()
  3017             return old.node()
  3018 
  3018 
  3019         commitphase = None
  3019         commitphase = None
  3020         if opts.get(b'secret'):
  3020         if opts.get(b'secret'):
  3021             commitphase = phases.secret
  3021             commitphase = phases.secret
       
  3022         elif opts.get(b'draft'):
       
  3023             commitphase = phases.draft
  3022         newid = repo.commitctx(new)
  3024         newid = repo.commitctx(new)
  3023         ms.reset()
  3025         ms.reset()
  3024 
  3026 
  3025         with repo.dirstate.parentchange():
  3027         with repo.dirstate.parentchange():
  3026             # Reroute the working copy parent to the new changeset
  3028             # Reroute the working copy parent to the new changeset