mercurial/cmdutil.py
changeset 41206 6acbe86c6490
parent 41173 4145fd3569c3
child 41365 876494fd967d
child 41977 4ea21df312ec
equal deleted inserted replaced
41205:3f807237dc94 41206:6acbe86c6490
  2586         repo.setparents(newid, nullid)
  2586         repo.setparents(newid, nullid)
  2587         mapping = {old.node(): (newid,)}
  2587         mapping = {old.node(): (newid,)}
  2588         obsmetadata = None
  2588         obsmetadata = None
  2589         if opts.get('note'):
  2589         if opts.get('note'):
  2590             obsmetadata = {'note': encoding.fromlocal(opts['note'])}
  2590             obsmetadata = {'note': encoding.fromlocal(opts['note'])}
  2591         backup = ui.configbool('ui', 'history-editing-backup')
  2591         backup = ui.configbool('rewrite', 'backup-bundle')
  2592         scmutil.cleanupnodes(repo, mapping, 'amend', metadata=obsmetadata,
  2592         scmutil.cleanupnodes(repo, mapping, 'amend', metadata=obsmetadata,
  2593                              fixphase=True, targetphase=commitphase,
  2593                              fixphase=True, targetphase=commitphase,
  2594                              backup=backup)
  2594                              backup=backup)
  2595 
  2595 
  2596         # Fixing the dirstate because localrepo.commitctx does not update
  2596         # Fixing the dirstate because localrepo.commitctx does not update