mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
b0d59e858a
Summary: revlog uses transaction.find and transaction.replace in cases where a datafile is separated from an index (>= revlog._maxinline). In these cases the importer broke as we did not implement find and replace in filetransaction. We implement the two methods. However we ned a save way to store the data portion which find must correclty return. We cannot store json as some serializations aren't bidirecitonal. We can't store pickle as \n is a common separator in pickle, and we use that to separate our entries. So we use pickle and then base64 encode it. This is cumbersome but works. The fix is aimed to make things "work" and I want to explore options to better implement find and replace. Test Plan: - Working on a test that correclty triggers inline -> separation. - Deployed it to our test system with test data and see commits comming in. Reviewers: #idi, #ovrsource_warroom, #mercurial Differential Revision: https://phabricator.intern.facebook.com/D5189308 |
||
---|---|---|
.. | ||
__init__.py | ||
filetransaction.py | ||
importer.py | ||
p4.py | ||
util.py |