b.p.w.b.ConvertBzrDir4To5(Converter) : class documentation

Part of bzrlib.plugins.weave_fmt.bzrdir View In Hierarchy

Converts format 4 bzr dirs to format 5.
Method __init__ Undocumented
Method convert See Converter.convert().
Method get_parent_map See graph.StackedParentsProvider.get_parent_map
Method snapshot_ie Undocumented
Method _convert_to_weaves Undocumented
Method _cleanup_spare_files_after_format4 Undocumented
Method _convert_working_inv Undocumented
Method _write_all_weaves Undocumented
Method _write_all_revs Write all revisions out in new form.
Method _load_one_rev Load a revision object into memory.
Method _load_old_inventory Undocumented
Method _load_updated_inventory Undocumented
Method _convert_one_rev Convert revision and all referenced objects to new format.
Method _store_new_inv Undocumented
Method _convert_revision_contents Convert all the files within a revision.
Method _convert_file_version Convert one version of one file.
Method _make_order Return a suitable order for importing revisions.

Inherited from Converter:

Method step Update the pb by a step.
def __init__(self):
Undocumented
def convert(self, to_convert, pb):
See Converter.convert().
def _convert_to_weaves(self):
Undocumented
def _cleanup_spare_files_after_format4(self):
Undocumented
def _convert_working_inv(self):
Undocumented
def _write_all_weaves(self):
Undocumented
def _write_all_revs(self):
Write all revisions out in new form.
def _load_one_rev(self, rev_id):
Load a revision object into memory.

Any parents not either loaded or abandoned get queued to be loaded.

def _load_old_inventory(self, rev_id):
Undocumented
def _load_updated_inventory(self, rev_id):
Undocumented
def _convert_one_rev(self, rev_id):
Convert revision and all referenced objects to new format.
def _store_new_inv(self, rev, inv, present_parents):
Undocumented
def _convert_revision_contents(self, rev, inv, present_parents):
Convert all the files within a revision.

Also upgrade the inventory to refer to the text revision ids.

def _convert_file_version(self, rev, ie, parent_invs):
Convert one version of one file.

The file needs to be added into the weave if it is a merge of >=2 parents or if it's changed from its parent.

def get_parent_map(self, revision_ids):
See graph.StackedParentsProvider.get_parent_map
def snapshot_ie(self, previous_revisions, ie, w, rev_id):
Undocumented
def _make_order(self):
Return a suitable order for importing revisions.

The order must be such that an revision is imported after all its (present) parents.

API Documentation for Bazaar, generated by pydoctor at 2019-11-20 00:36:28.