b.patch : module documentation

Part of bzrlib

No module docstring
Function write_to_cmd Spawn a process, and wait for the result
Function patch Apply a patch to a file, to produce another output file. This is should
Function diff3 Undocumented
def write_to_cmd(args, input=''):
Spawn a process, and wait for the result

If the process is killed, an exception is raised

ParametersargsThe command line, the first entry should be the program name
input[optional] The text to send the process on stdin
Returns(stdout, stderr, status)
def patch(patch_contents, filename, output_filename=None, reverse=False):
Apply a patch to a file, to produce another output file. This is should be suitable for our limited purposes.
Parameterspatch_contentsThe contents of the patch to apply (type: str)
filenamethe name of the file to apply the patch to (type: str)
output_filenameThe filename to produce. If None, file is modified in-place (type: str or NoneType)
reverseIf true, apply the patch in reverse (type: bool)
Returns0 on success, 1 if some hunks failed
def diff3(out_file, mine_path, older_path, yours_path):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.