mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
1d96446f97
Summary: Previously remotefilelog did not produce all the necessary local data blobs when doing a peer push/pull if the incoming changegroup had two manifests that referred to the same file revision. We would only create a file blob containing the history for the first occurrence, then if the user tried to access the file history for other occurrences they got an exception. The fix is to add linkrev fixup logic, similar to the adjustlinkrev() method from core Mercurial's filectx. Now, if no valid local file blob can be found, we will compute a valid history by reading the changelog. We might be able to write this data to disk in the future as well to prevent having to repeatedly compute this. Test Plan: Added a test Reviewers: sid0, rmcelroy, pyd, mitrandir, lcharignon Differential Revision: https://phabricator.fb.com/D1904453 |
||
---|---|---|
.. | ||
__init__.py | ||
cacheclient.py | ||
debugcommands.py | ||
fileserverclient.py | ||
remotefilectx.py | ||
remotefilelog.py | ||
remotefilelogserver.py | ||
shallowbundle.py | ||
shallowrepo.py | ||
shallowstore.py | ||
shallowutil.py |