dulwich.pack.DeltaChainIterator(object)
class documentationdulwich.pack
(View In Hierarchy)
Known subclasses: dulwich.pack.PackIndexer, dulwich.pack.PackInflater, dulwich.tests.test_pack.TestPackIterator
Abstract iterator over pack data based on delta chains.
Each object in the pack is guaranteed to be inflated exactly once, regardless of how many objects reference it as a delta base. As a result, memory usage is proportional to the length of the longest delta chain.
Subclasses can override _result to define the result type of the iterator. By default, results are UnpackedObjects with the following members set:
Method | __init__ | Undocumented |
Class Method | for_pack_data | Undocumented |
Method | record | Undocumented |
Method | set_pack_data | Undocumented |
Method | __iter__ | Undocumented |
Method | ext_refs | Undocumented |
Method | _walk_all_chains | Undocumented |
Method | _ensure_no_pending | Undocumented |
Method | _walk_ref_chains | Undocumented |
Method | _result | Undocumented |
Method | _resolve_object | Undocumented |
Method | _follow_chain | Undocumented |