mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
e6135bbf0a
Summary: The `ObjectFetchContext::Origin::FromBackingStore` is widely interpreted as meaning that a network fetch was performed, but for some backing stores, this isn't true. The Mercurial backing store for instance can either read data from its on-disk cache, or from the network. Since both have very different characteristics we shouldn't bundle them in the same enum value. Since the backing store knows how data was obtained, let's have the backing store return how it was obtained to enable the ObjectStore to properly record this information. The `FromBackingStore` is also renamed to make it clearer what its purpose is. Reviewed By: zhengchaol Differential Revision: D31118906 fbshipit-source-id: ee42a0c9d221f870742de07c0df7c732bc79d880 |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
FakeBackingStore.cpp | ||
FakeBackingStore.h | ||
FakeClock.h | ||
FakeFuse.cpp | ||
FakeFuse.h | ||
FakeObjectStore.cpp | ||
FakeObjectStore.h | ||
FakePrivHelper.cpp | ||
FakePrivHelper.h | ||
FakeTreeBuilder.cpp | ||
FakeTreeBuilder.h | ||
HgBinary.cpp | ||
HgBinary.h | ||
HgRepo.cpp | ||
HgRepo.h | ||
InodeUnloader.h | ||
LoggingFetchContext.h | ||
StoredObject.h | ||
TempFile.cpp | ||
TempFile.h | ||
TestChecks.h | ||
TestDispatcher.cpp | ||
TestDispatcher.h | ||
TestMain.cpp | ||
TestMount.cpp | ||
TestMount.h | ||
TestServer.cpp | ||
TestServer.h | ||
TestUtil.cpp | ||
TestUtil.h |