mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
dc07b62633
Summary: Previously we can only answer the "path" information when the revision is in the linelog revmap, and the code would crash if a revision is in a side branch, and the user requests path information. This diff fixes it. Besides, this diff improves rename handling. For example, given the following chart: ``` o---o -o file name: a / o---o- file name: b ^ ^ ^ 1 2 3 revisions ``` Depending on the position of the `main branch` reference, fastannotate may or may not use linelog: - main branch is at rev 2, annotate a -r 3 will not take advantage of linelog (fallback to slow annotate) - main branch is at rev 3, annotate a -r 2 will not take advantage of linelog This is not ideal, but seems to be the best we can do for now. Test Plan: Added a new test, updated existing relevant tests. Some debug messages are changed to reflect internals more precisely. Reviewers: #sourcecontrol, stash Reviewed By: stash Subscribers: stash, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4010964 Signature: t1:4010964:1476458201:79875d96399d023d0000d0c4bb8b8d40ea43eef0 |
||
---|---|---|
.. | ||
__init__.py | ||
commands.py | ||
context.py | ||
error.py | ||
formatter.py | ||
hgwebsupport.py | ||
revmap.py |