mercurial/cmdutil.py
changeset 43725 71dbd6f6fcb8
parent 43712 f965b1027fb0
child 43773 7b14d649af1b
equal deleted inserted replaced
43718:d155bf11cf22 43725:71dbd6f6fcb8
  1769             for idfunc in extrapreimport:
  1769             for idfunc in extrapreimport:
  1770                 extrapreimportmap[idfunc](repo, patchdata, extra, opts)
  1770                 extrapreimportmap[idfunc](repo, patchdata, extra, opts)
  1771             overrides = {}
  1771             overrides = {}
  1772             if partial:
  1772             if partial:
  1773                 overrides[(b'ui', b'allowemptycommit')] = True
  1773                 overrides[(b'ui', b'allowemptycommit')] = True
       
  1774             if opts.get(b'secret'):
       
  1775                 overrides[(b'phases', b'new-commit')] = b'secret'
  1774             with repo.ui.configoverride(overrides, b'import'):
  1776             with repo.ui.configoverride(overrides, b'import'):
  1775                 n = repo.commit(
  1777                 n = repo.commit(
  1776                     message, user, date, match=m, editor=editor, extra=extra
  1778                     message, user, date, match=m, editor=editor, extra=extra
  1777                 )
  1779                 )
  1778                 for idfunc in extrapostimport:
  1780                 for idfunc in extrapostimport: