equal
deleted
inserted
replaced
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'])} |