sapling/fastannotate
Jun Wu d38f639086 fastannotate: deal with non-writable fastannotate directory
Summary:
Previously, fastannotate requires `.hg/fastannotate` to be writable. However,
this cannot be guaranteed in cases like running hg in other's repo.

This patch adds some exception handling to make fastannotate running in "fctx"
mode just work even if `.hg/fastannotate` is not writable.

Note: the `fastannotate` command ("fastannotate" mode) is not changed as if
that command is triggered explicitly, the user should be aware of it works
differently from the vanilla annotate command.

Test Plan: Added a test

Reviewers: #sourcecontrol, durham

Reviewed By: durham

Subscribers: mjpieters

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

Tasks: 15489272

Signature: t1:4481427:1485775004:ccc0b99b38146034c5b235445d762e55dbb78dbe
2017-01-30 11:56:38 +00: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: convert revision number to hex 2016-12-14 16:46:28 +00:00
error.py fastannotate: move exception classes to error.py 2016-09-08 14:47:49 +01:00
formatter.py fastannotate: support -r wdir() 2016-10-21 20:50:37 +01:00
protocol.py fastannotate: deal with non-writable fastannotate directory 2017-01-30 11:56:38 +00:00
revmap.py fastannotate: add a method to quickly get the last node of the revmap 2016-10-29 19:19:18 +01:00
support.py fastannotate: work better with remotefilelog 2016-12-19 12:13:51 -08:00