b.d.DiffFromTool(DiffPath) : class documentation

Part of bzrlib.diff View In Hierarchy

No class docstring
Method __init__ Constructor.
Class Method from_string Undocumented
Class Method make_from_diff_tree Undocumented
Method finish Undocumented
Method diff Undocumented
Method edit_file Use this tool to edit a file.
Method _get_command Undocumented
Method _execute Undocumented
Method _try_symlink_root Undocumented
Static Method _fenc Returns safe encoding for passing file path to diff tool
Method _is_safepath Return true if path may be able to pass to subprocess.
Method _safe_filename Replace unsafe character in relpath then join self._root,
Method _write_file Undocumented
Method _prepare_files Undocumented

Inherited from DiffPath:

Class Method from_diff_tree Undocumented
Static Method _diff_many Undocumented
def __init__(self, command_template, old_tree, new_tree, to_file, path_encoding='utf-8'):
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
@classmethod
def from_string(klass, command_string, old_tree, new_tree, to_file, path_encoding='utf-8'):
Undocumented
@classmethod
def make_from_diff_tree(klass, command_string, external_diff_options=None):
Undocumented
def _get_command(self, old_path, new_path):
Undocumented
def _execute(self, old_path, new_path):
Undocumented
def _try_symlink_root(self, tree, prefix):
Undocumented
@staticmethod
def _fenc():
Returns safe encoding for passing file path to diff tool
def _is_safepath(self, path):
Return true if path may be able to pass to subprocess.
def _safe_filename(self, prefix, relpath):
Replace unsafe character in relpath then join self._root, prefix and relpath.
def _write_file(self, file_id, tree, prefix, relpath, force_temp=False, allow_write=False):
Undocumented
def _prepare_files(self, file_id, old_path, new_path, force_temp=False, allow_write_new=False):
Undocumented
def finish(self):
Undocumented
def diff(self, file_id, old_path, new_path, old_kind, new_kind):
Undocumented
def edit_file(self, file_id):
Use this tool to edit a file.

A temporary copy will be edited, and the new contents will be returned.

Parametersfile_idThe id of the file to edit.
ReturnsThe new contents of the file.
API Documentation for Bazaar, generated by pydoctor at 2019-11-20 00:36:28.