salvaged: track removal-candidates in more cases
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 14 Sep 2020 23:46:38 +0200
changeset 45661 ebc14a2ad23d
parent 45660 e66db30f95a8
child 45662 64a4b85c4a00
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
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