mercurial/cmdutil.py
branchstable
changeset 44330 b339faf3f843
parent 44098 19533e4c3450
child 44374 f5c006621f07
child 44401 92b7caf4cb9e
equal deleted inserted replaced
44329:d1177d39012e 44330:b339faf3f843
  1896                 user=user,
  1896                 user=user,
  1897                 date=date,
  1897                 date=date,
  1898                 branch=branch,
  1898                 branch=branch,
  1899                 editor=editor,
  1899                 editor=editor,
  1900             )
  1900             )
  1901             n = memctx.commit()
  1901 
       
  1902             overrides = {}
       
  1903             if opts.get(b'secret'):
       
  1904                 overrides[(b'phases', b'new-commit')] = b'secret'
       
  1905             with repo.ui.configoverride(overrides, b'import'):
       
  1906                 n = memctx.commit()
  1902         finally:
  1907         finally:
  1903             store.close()
  1908             store.close()
  1904     if opts.get(b'exact') and nocommit:
  1909     if opts.get(b'exact') and nocommit:
  1905         # --exact with --no-commit is still useful in that it does merge
  1910         # --exact with --no-commit is still useful in that it does merge
  1906         # and branch bits
  1911         # and branch bits