b.m.MergeHookParams(object) : class documentation

Part of bzrlib.merge View In Hierarchy

Object holding parameters passed to merge_file_content hooks.

There are some fields hooks can access:

Instance Variablesfile_idthe file ID of the file being merged
trans_idthe transform ID for the merge of this file
this_kindkind of file_id in 'this' tree
other_kindkind of file_id in 'other' tree
winnerone of 'this', 'other', 'conflict'
Method __init__ Undocumented
Method is_file_merge True if this_kind and other_kind are both 'file'.
Method base_lines The lines of the 'base' version of the file.
Method this_lines The lines of the 'this' version of the file.
Method other_lines The lines of the 'other' version of the file.
def __init__(self, merger, file_id, trans_id, this_kind, other_kind, winner):
Undocumented
def is_file_merge(self):
True if this_kind and other_kind are both 'file'.
@decorators.cachedproperty
def base_lines(self):
The lines of the 'base' version of the file.
@decorators.cachedproperty
def this_lines(self):
The lines of the 'this' version of the file.
@decorators.cachedproperty
def other_lines(self):
The lines of the 'other' version of the file.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.