b.r.g.GCCHKPacker(Packer) : class documentation

Part of bzrlib.repofmt.groupcompress_repo View In Hierarchy

Known subclasses: bzrlib.repofmt.groupcompress_repo.GCCHKCanonicalizingPacker, bzrlib.repofmt.groupcompress_repo.GCCHKReconcilePacker

This class understand what it takes to collect a GCCHK repo.
Method __init__ Create a Packer.
Method _get_progress_stream Undocumented
Method _get_filtered_inv_stream Filter the texts of inventories, to find the chk pages.
Method _get_chk_streams Undocumented
Method _build_vf Build a VersionedFiles instance on top of this group of packs.
Method _build_vfs Build the source and target VersionedFiles.
Method _copy_stream Undocumented
Method _copy_revision_texts Copy revision data to the new pack.
Method _copy_inventory_texts Copy the inventory texts to the new pack.
Method _get_chk_vfs_for_copy Undocumented
Method _copy_chk_texts Undocumented
Method _copy_text_texts Undocumented
Method _copy_signature_texts Undocumented
Method _create_pack_from_packs Undocumented

Inherited from Packer:

Method pack Create a new pack by reading data from other packs.
Method open_pack Open a pack for the pack we are creating.
Method _log_copied_texts Undocumented
Method _use_pack Return True if new_pack should be used.
def __init__(self, pack_collection, packs, suffix, revision_ids=None, reload_func=None):
Create a Packer.
Parameterspack_collectionA RepositoryPackCollection object where the new pack is being written to.
packsThe packs to combine.
suffixThe suffix to use on the temporary files for the pack.
revision_idsRevision ids to limit the pack to.
reload_funcA function to call if a pack file/index goes missing. The side effect of calling this function should be to update self.packs. See also AggregateIndex
def _get_progress_stream(self, source_vf, keys, message, pb):
Undocumented
def _get_filtered_inv_stream(self, source_vf, keys, message, pb=None):
Filter the texts of inventories, to find the chk pages.
def _get_chk_streams(self, source_vf, keys, pb=None):
Undocumented
def _build_vf(self, index_name, parents, delta, for_write=False):
Build a VersionedFiles instance on top of this group of packs.
def _build_vfs(self, index_name, parents, delta):
Build the source and target VersionedFiles.
def _copy_stream(self, source_vf, target_vf, keys, message, vf_to_stream, pb_offset):
Undocumented
def _copy_revision_texts(self):
Copy revision data to the new pack.
def _copy_inventory_texts(self):
Copy the inventory texts to the new pack.

self._revision_keys is used to determine what inventories to copy.

Sets self._text_filter appropriately.

def _get_chk_vfs_for_copy(self):
Undocumented
def _copy_chk_texts(self):
Undocumented
def _copy_text_texts(self):
Undocumented
def _copy_signature_texts(self):
Undocumented
def _create_pack_from_packs(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.