b.m.BaseVersionedFile(object) : class documentation

Part of bzrlib.multiparent View In Hierarchy

Known subclasses: bzrlib.multiparent.MultiMemoryVersionedFile, bzrlib.multiparent.MultiVersionedFile

Pseudo-VersionedFile skeleton for MultiParent
Method __init__ Undocumented
Method versions Undocumented
Method has_version Undocumented
Method do_snapshot Determine whether to perform a snapshot for this version
Method add_version Add a version to the versionedfile
Method get_parents Undocumented
Method make_snapshot Undocumented
Method import_versionedfile Import all revisions of a versionedfile
Method select_snapshots Determine which versions to add as snapshots
Method select_by_size Select snapshots for minimum output size
Method get_size_ranking Get versions ranked by size
Method import_diffs Import the diffs from another pseudo-versionedfile
Method get_build_ranking Return revisions sorted by how much they reduce build complexity
Method clear_cache Undocumented
Method get_line_list Undocumented
Method cache_version Undocumented
def __init__(self, snapshot_interval=25, max_snapshots=None):
Undocumented
def versions(self):
Undocumented
def has_version(self, version):
Undocumented
def do_snapshot(self, version_id, parent_ids):
Determine whether to perform a snapshot for this version
def add_version(self, lines, version_id, parent_ids, force_snapshot=None, single_parent=False):
Add a version to the versionedfile

        :param lines: The list of lines to add.  Must be split on '
'.
        :param version_id: The version_id of the version to add
        :param force_snapshot: If true, force this version to be added as a
            snapshot version.  If false, force this version to be added as a
            diff.  If none, determine this automatically.
        :param single_parent: If true, use a single parent, rather than
            multiple parents.
        
def get_parents(self, version_id):
Undocumented
def make_snapshot(self, version_id):
Undocumented
def import_versionedfile(self, vf, snapshots, no_cache=True, single_parent=False, verify=False):
Import all revisions of a versionedfile
ParametersvfThe versionedfile to import
snapshotsIf provided, the revisions to make snapshots of. Otherwise, this will be auto-determined
no_cacheIf true, clear the cache after every add.
single_parentIf true, omit all but one parent text, (but retain parent metadata).
def select_snapshots(self, vf):
Determine which versions to add as snapshots
def select_by_size(self, num):
Select snapshots for minimum output size
def get_size_ranking(self):
Get versions ranked by size
def import_diffs(self, vf):
Import the diffs from another pseudo-versionedfile
def get_build_ranking(self):
Return revisions sorted by how much they reduce build complexity
def clear_cache(self):
Undocumented
def get_line_list(self, version_ids):
Undocumented
def cache_version(self, version_id):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.