b.t.Testament(object) : class documentation

Part of bzrlib.testament View In Hierarchy

Known subclasses: bzrlib.testament.StrictTestament

Reduced summary of a revision.

Testaments can be

Class Method from_revision Produce a new testament from a historical revision.
Class Method from_revision_tree Produce a new testament from a revision tree.
Method __init__ Create a new testament for rev using tree.
Method as_text_lines Yield text form as a sequence of lines.
Method as_text Undocumented
Method as_short_text Return short digest-based testament.
Method as_sha1 Undocumented
Method _get_entries Undocumented
Method _escape_path Undocumented
Method _entry_to_line Turn an inventory entry into a testament line
Method _revprops_to_lines Pack up revision properties.
@classmethod
def from_revision(cls, repository, revision_id):
Produce a new testament from a historical revision.
@classmethod
def from_revision_tree(cls, tree):
Produce a new testament from a revision tree.
def __init__(self, rev, tree):
Create a new testament for rev using tree.
def as_text_lines(self):
Yield text form as a sequence of lines.

The result is returned in utf-8, because it should be signed or hashed in that encoding.

def _get_entries(self):
Undocumented
def _escape_path(self, path):
Undocumented
def _entry_to_line(self, path, ie):
Turn an inventory entry into a testament line
def as_text(self):
Undocumented
def as_short_text(self):
Return short digest-based testament.
def _revprops_to_lines(self):
Pack up revision properties.
def as_sha1(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.