mercurial/cmdutil.py
changeset 47746 56297381af90
parent 47732 dc610e325302
child 48100 571dd808c6c8
equal deleted inserted replaced
47745:06d57a91441e 47746:56297381af90
  3002 
  3002 
  3003             # Update the state of files which were removed in the amend
  3003             # Update the state of files which were removed in the amend
  3004             # to "removed" in the dirstate.
  3004             # to "removed" in the dirstate.
  3005             removedfiles = set(wctx.removed()) & filestoamend
  3005             removedfiles = set(wctx.removed()) & filestoamend
  3006             for f in removedfiles:
  3006             for f in removedfiles:
  3007                 dirstate.drop(f)
  3007                 dirstate.update_file(f, p1_tracked=False, wc_tracked=False)
  3008 
  3008 
  3009         mapping = {old.node(): (newid,)}
  3009         mapping = {old.node(): (newid,)}
  3010         obsmetadata = None
  3010         obsmetadata = None
  3011         if opts.get(b'note'):
  3011         if opts.get(b'note'):
  3012             obsmetadata = {b'note': encoding.fromlocal(opts[b'note'])}
  3012             obsmetadata = {b'note': encoding.fromlocal(opts[b'note'])}