Part of bzrlib
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 |
If the process is killed, an exception is raised
Parameters | args | The command line, the first entry should be the program name |
input | [optional] The text to send the process on stdin | |
Returns | (stdout, stderr, status) |
Parameters | patch_contents | The contents of the patch to apply (type: str) |
filename | the name of the file to apply the patch to (type: str) | |
output_filename | The filename to produce. If None, file is modified in-place (type: str or NoneType) | |
reverse | If true, apply the patch in reverse (type: bool) | |
Returns | 0 on success, 1 if some hunks failed |