b.d.DiffText(DiffPath) : class documentation

Part of bzrlib.diff View In Hierarchy

No class docstring
Method __init__ Constructor.
Method diff Compare two files in unified diff format
Method diff_text Diff the content of given files in two trees

Inherited from DiffPath:

Method finish Undocumented
Class Method from_diff_tree Undocumented
Static Method _diff_many Undocumented
def __init__(self, old_tree, new_tree, to_file, path_encoding='utf-8', old_label='', new_label='', text_differ=internal_diff):
Constructor.
Parametersold_treeThe tree to show as the old tree in the comparison
new_treeThe tree to show as new in the comparison
to_fileThe file to write comparison data to
path_encodingThe character encoding to write paths in
def diff(self, file_id, old_path, new_path, old_kind, new_kind):
Compare two files in unified diff format
Parametersfile_idThe file_id of the file to compare
old_pathPath of the file in the old tree
new_pathPath of the file in the new tree
old_kindOld file-kind of the file
new_kindNew file-kind of the file
def diff_text(self, from_file_id, to_file_id, from_label, to_label, from_path=None, to_path=None):
Diff the content of given files in two trees
Parametersfrom_file_idThe id of the file in the from tree. If None, the file is not present in the from tree.
to_file_idThe id of the file in the to tree. This may refer to a different file from from_file_id. If None, the file is not present in the to tree.
from_pathThe path in the from tree or None if unknown.
to_pathThe path in the to tree or None if unknown.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.