copytrace: disable dagcopytrace for source missing files

Summary:
The dagcopytrace was enabled for source missing file in D46315431.

It's too slow if there are many files deleted in the source commit. I will debug the root cause tomorrow, let's disable it for hg repo first. We are not disabling it for git repo, because there is not alternative for git repos.

Reviewed By: muirdm

Differential Revision: D46711460

fbshipit-source-id: 4e20bbb34be126c13af081475953b83df61872df
This commit is contained in:
Zhaolong Zhu 2023-06-13 22:00:44 -07:00 committed by Facebook GitHub Bot
parent bbc7122c15
commit d3eaf5a42f

View File

@ -40,6 +40,7 @@ from edenscm import (
dispatch,
extensions,
filemerge,
git,
json,
node,
phases,
@ -419,7 +420,7 @@ def _domergecopies(orig, repo, cdst, csrc, base):
if sourcecommitnum > sourcecommitlimit:
return orig(repo, cdst, csrc, base)
if _dagcopytraceenabled(repo.ui):
if _dagcopytraceenabled(repo.ui) and git.isgitformat(repo):
dag_copy_trace = repo._dagcopytrace
srcmissingfiles = [
f for f in changedfiles if f not in csrc and f in base and f in mdst