mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
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:
parent
bbc7122c15
commit
d3eaf5a42f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user