sapling/fastannotate
Jun Wu d2965bcd6a fastannotate: replace some assertions to formal errors
Summary:
fastannotate can rebuild cache automatically if it sees `CorruptedFileError` or
`CannotReuseError`, but not for `AssertionError`.

With `strip`, some assertion errors really mean file corruption. So let's use
correct exceptions so corrupted files get rebuilt automatically.

Test Plan: Run existing tests.

Reviewers: #mercurial, durham

Reviewed By: durham

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D5013658

Signature: t1:5013658:1494018897:a04032103b3e0cbc509adeae0d88c0a783a0dbdb
2017-05-05 14:17:35 -07:00
..
__init__.py fastannotate: work better with remotefilelog 2016-12-19 12:13:51 -08:00
commands.py fastannotate: add a forcetext option 2016-12-14 16:44:45 +00:00
context.py fastannotate: replace some assertions to formal errors 2017-05-05 14:17:35 -07:00
error.py fastannotate: move exception classes to error.py 2016-09-08 14:47:49 +01:00
formatter.py fix tests 2017-04-07 01:03:26 -07:00
protocol.py fastannotate: deal with non-writable fastannotate directory 2017-01-30 11:56:38 +00:00
revmap.py fastannotate: replace some assertions to formal errors 2017-05-05 14:17:35 -07:00
support.py fastannotate: work better with remotefilelog 2016-12-19 12:13:51 -08:00