mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
b4efcc56cf
Summary: Previously, fastannotate's annotatecontext would delete individual cache files (linelog and revmap) if it meets Exception. While the "fastannotate" command has some retry logic, "debugbuildannotatecache" doesn't, which means users have to run "debugbuildannotatecache" O(number-of-corrupted-files) times to unblock. And "fastannotate" does not handle AssertionError which could be seen as "linelog is corrupted" nicely - it crashes without retry. Addressing all the above issues by replacing the "assert" to "CorruptedFileError", catching them and retry properly. Test Plan: Added a new test. Reviewers: #sourcecontrol, rmcelroy Reviewed By: rmcelroy Subscribers: mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4233433 Signature: t1:4233433:1480330548:618e80762af2209784ad72ad0658f649b050a080 |
||
---|---|---|
.. | ||
__init__.py | ||
commands.py | ||
context.py | ||
error.py | ||
formatter.py | ||
hgwebsupport.py | ||
protocol.py | ||
revmap.py |