sapling/fastannotate
Jun Wu 5a61921433 fastannotate: resolve revision number to node
Summary:
fastannotate has a fastpath, when the node (commit hash) exists in revmap,
it would generate the output instantly from the linelog without going
through the history.

In the "fctx" mode, the vanilla annotate command would pass the revision
number instead of changeset node to fastannotate, which prevents
fastannotate from using the fast path.

This diff converts the revision number to node before testing the fast path
to solve the problem.

Test Plan: Modified existing tests.

Reviewers: #sourcecontrol, durham

Reviewed By: durham

Subscribers: durham, mjpieters

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

Signature: t1:4288927:1481073363:3330d60878161139ee195bc968c161d6c0d95ace
2016-12-07 00:09:04 +00:00
..
__init__.py fastannotate: add a config option to disable up-to-date check server-side 2016-12-06 21:19:59 +00:00
commands.py fastannotate: skip downloading linelog if the file history is short 2016-12-01 00:23:24 +00:00
context.py fastannotate: resolve revision number to node 2016-12-07 00:09:04 +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: add a config option to disable up-to-date check server-side 2016-12-06 21:19:59 +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: conditionally disable remotefilelog annotate prefetching 2016-12-01 02:12:53 +00:00