mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
d3424dd296
Summary: fastannotate will tell remotefilelog what nodes of a file is already known in linelog + revmap, so remotefilelog will not prefetch those files. Previously, fastannotate either prevents all prefetching or allows all prefetching, which is sub-optimal. fastannotate could now donate its sshpeer to remotefilelog, so remotefilelog won't need to start another one (assuming they can share a same sshpeer, could be turned off via config options). This should reduce run time if SSH handshake is expensive. fastannotate could now also steal sshpeer from remotefilelog, so fastannotate won't need to start another one. Combined with the above change, there would always be only one sshpeer shared by fastannotate and remotefilelog. Test Plan: Modified existing tests Reviewers: #sourcecontrol, durham Reviewed By: durham Subscribers: ikostia, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4325382 Signature: t1:4325382:1481933531:39d6344b2c076fbbff1f07997cd268e7cee25e80 |
||
---|---|---|
.. | ||
__init__.py | ||
commands.py | ||
context.py | ||
error.py | ||
formatter.py | ||
protocol.py | ||
revmap.py | ||
support.py |