ensure we only record files while recording fetches

Summary: We only care about the files we need when recording prefetch profiles (since we don't want to fetch top level directories). So let's skip recording `Tree` object types.

Reviewed By: kmancini

Differential Revision: D23693533

fbshipit-source-id: 9af5437ff6571a34597425ca5f657e7126671ba9
This commit is contained in:
Genevieve Helsel 2020-09-15 09:34:44 -07:00 committed by Facebook GitHub Bot
parent 92b09459f0
commit d1601bdd86

View File

@ -294,7 +294,9 @@ void HgQueuedBackingStore::logBackingStoreFetch(
}
}
recordFetch(path.stringPiece());
if (type != ObjectFetchContext::ObjectType::Tree) {
recordFetch(path.stringPiece());
}
if (logFetchPathRegex) {
if (RE2::PartialMatch(