##// END OF EJS Templates
amend: use `update_file` instead of `drop`...
marmoute -
r48546:56297381 default
parent child Browse files
Show More
@@ -3004,7 +3004,7 b' def amend(ui, repo, old, extra, pats, op'
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
General Comments 0
You need to be logged in to leave comments. Login now