mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
cc11141ce5
Summary: Previously, to serialize a tree we would call treemanifest.write() which would take the stores and call the appropriate add() functions. This meant the treemanifest code controlled when deltas were used, which makes it hard to decide deltas based on external factors, like which pack file the parent is in. As a first step to fixing this, we're adding a new finalize function that returns a python iterator that allows iterating over the new parts of the tree. In a future diff we will use this to do serialization and delta decisions at the python/pack layer instead. The same future diff will also cover this in tests, as it moves all calls to treemanifest.write() to use treemanifest.finalize(). Test Plan: The next diff switches all write() calls and tests to finalize() Reviewers: #mercurial, simonfar Reviewed By: simonfar Subscribers: mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4645922 Signature: t1:4645922:1488880722:574a37ba800f4b78faf8bad3979b447f4278cc55 |
||
---|---|---|
.. | ||
bitmanipulation.h | ||
compat.h | ||
datapackstore.cpp | ||
datapackstore.h | ||
key.h | ||
mpatch.c | ||
mpatch.h | ||
py-cdatapack.h | ||
py-cstore.cpp | ||
py-datapackstore.h | ||
py-structs.h | ||
py-treemanifest.h | ||
store.h | ||
uniondatapackstore.cpp | ||
uniondatapackstore.h |