b.d._ChangeReporter(object) : class documentation

Part of bzrlib.delta View In Hierarchy

Report changes between two trees
Method __init__ Constructor
Method report Report one change to a file
def __init__(self, output=None, suppress_root_add=True, output_file=None, unversioned_filter=None, view_info=None, classify=True):
Constructor
Parametersoutputa function with the signature of trace.note, i.e. accepts a format and parameters.
supress_root_addIf true, adding the root will be ignored (i.e. when a tree has just been initted)
output_fileIf supplied, a file-like object to write to. Only one of output and output_file may be supplied.
unversioned_filterA filter function to be called on unversioned files. This should return True to ignore a path. By default, no filtering takes place.
view_infoA tuple of view_name,view_files if only items inside a view are to be reported on, or None for no view filtering.
classifyAdd special symbols to indicate file kind.
def report(self, file_id, paths, versioned, renamed, modified, exe_change, kind):
Report one change to a file
Parametersfile_idThe file_id of the file
pathThe old and new paths as generated by Tree.iter_changes.
versionedmay be 'added', 'removed', 'unchanged', or 'unversioned.
renamedmay be True or False
modifiedmay be 'created', 'deleted', 'kind changed', 'modified' or 'unchanged'.
exe_changeTrue if the execute bit has changed
kindA pair of file kinds, as generated by Tree.iter_changes. None indicates no file present.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.