##// END OF EJS Templates
salvaged: record salvaged in ChangingFiles at commit time...
marmoute -
r46236:751d9436 default draft
parent child Browse files
Show More
@@ -140,6 +140,19 b' def _prepare_files(tr, ctx, error=False,'
140 files.update_copies_from_p1(ctx.p1copies())
140 files.update_copies_from_p1(ctx.p1copies())
141 files.update_copies_from_p2(ctx.p2copies())
141 files.update_copies_from_p2(ctx.p2copies())
142
142
143 copy_sd = ctx.repo().filecopiesmode == b'changeset-sidedata'
144 if copy_sd and len(ctx.parents()) > 1:
145 # XXX this `mergestate.read` could be duplicated with a the merge state
146 # reading in _process_files So we could refactor further to reuse it in
147 # some cases.
148 ms = mergestate.mergestate.read(repo)
149 if ms.active():
150 for fname in sorted(ms._stateextras.keys()):
151 might_removed = ms.extras(fname).get(b'merge-removal-candidate')
152 if might_removed == b'yes':
153 if fname in ctx:
154 files.mark_salvaged(fname)
155
143 return mn, files
156 return mn, files
144
157
145
158
General Comments 0
You need to be logged in to leave comments. Login now