# HG changeset patch # User Pierre-Yves David # Date 1600119998 -7200 # Node ID ebc14a2ad23d128f1bfb3ba9b489e39a6d91701a # Parent e66db30f95a8062ce96f4e9cf97efa1235544f19 salvaged: track removal-candidates in more cases If we want to use this information for copy tracing, then we need to be able to record it. First we unlock the recording of deletion candidates, and we will actually record the data in the next changeset. Differential Revision: https://phab.mercurial-scm.org/D9119 diff -r e66db30f95a8 -r ebc14a2ad23d mercurial/merge.py --- a/mercurial/merge.py Wed Sep 30 12:46:49 2020 +0200 +++ b/mercurial/merge.py Mon Sep 14 23:46:38 2020 +0200 @@ -781,7 +781,10 @@ if ( pa not in ([wctx, p2] + wctx.parents()) and not forcefulldiff - and not repo.ui.configbool(b'experimental', b'merge-track-salvaged') + and not ( + repo.ui.configbool(b'experimental', b'merge-track-salvaged') + or repo.filecopiesmode == b'changeset-sidedata' + ) ): # Identify which files are relevant to the merge, so we can limit the # total m1-vs-m2 diff to just those files. This has significant