mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
d752d72fc8
Summary: We have seen issues with Eden occasionally getting empty file contents back from Mercurial. We have not been able to reproduce this issue directly yet--the overall incidence rate relative to the number of users is fairly small, but the problem is pretty problematic when it does occur. This updates the hg_import_helper.py script to perform additional checking when it finds a file that is empty. Empty files that have never been modified or renamed all have the same file revlog hash. If the rev hash in question is this known hash, we know that the file is in fact empty. Otherwise, if remotefilelog is in use we check the remotefilelog metadata to confirm the size, and we log an error if it is non-zero. We then try re-opening the repository and re-importing the file. These additional checks and log messages should hopefully help narrow down the problem the next time we see a report of the issue. This should help us identify if the remotefilelog metadata has the correct file size or not. Reviewed By: wez Differential Revision: D9260788 fbshipit-source-id: 29615b32632946cd319aa837bec3c68b757d3ee0 |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
hg_import_helper.py | ||
HgBackingStore.cpp | ||
HgBackingStore.h | ||
HgImporter.cpp | ||
HgImporter.h | ||
HgImportPyError.cpp | ||
HgImportPyError.h | ||
HgManifestImporter.cpp | ||
HgManifestImporter.h | ||
HgProxyHash.cpp | ||
HgProxyHash.h | ||
tester.cpp |