b.d.TreeDelta(object) : class documentation

Part of bzrlib.delta View In Hierarchy

Describes changes from one tree to another.

Contains seven lists:

added
(path, id, kind)
removed
(path, id, kind)
renamed
(oldpath, newpath, id, kind, text_modified, meta_modified)
kind_changed
(path, id, old_kind, new_kind)
modified
(path, id, kind, text_modified, meta_modified)
unchanged
(path, id, kind)
unversioned
(path, None, kind)

Each id is listed only once.

Files that are both modified and renamed are listed only in renamed, with the text_modified flag true. The text_modified applies either to the content of the file or the target of the symbolic link, depending of the kind of file.

Files are only considered renamed if their name has changed or their parent directory has changed. Renaming a directory does not count as renaming all its contents.

The lists are normally sorted when the delta is created.

Method __init__ Undocumented
Method __eq__ Undocumented
Method __ne__ Undocumented
Method __repr__ Undocumented
Method has_changed Undocumented
Method touches_file_id Return True if file_id is modified by this delta.
Method get_changes_as_text Undocumented
def __init__(self):
Undocumented
def __eq__(self, other):
Undocumented
def __ne__(self, other):
Undocumented
def __repr__(self):
Undocumented
def has_changed(self):
Undocumented
def touches_file_id(self, file_id):
Return True if file_id is modified by this delta.
def get_changes_as_text(self, show_ids=False, show_unchanged=False, short_status=False):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.