mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 06:21:48 +03:00
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:
parent
92b09459f0
commit
d1601bdd86
@ -294,7 +294,9 @@ void HgQueuedBackingStore::logBackingStoreFetch(
|
||||
}
|
||||
}
|
||||
|
||||
if (type != ObjectFetchContext::ObjectType::Tree) {
|
||||
recordFetch(path.stringPiece());
|
||||
}
|
||||
|
||||
if (logFetchPathRegex) {
|
||||
if (RE2::PartialMatch(
|
||||
|
Loading…
Reference in New Issue
Block a user