Patch helper module¶
-
class
rebasehelper.patch_helper.
GitPatchTool
[source]¶ Class for git command used for patching old and new sources
-
CMD
= 'git'¶
-
static
apply_patch
(repo, patch_object)[source]¶ Function applies patches to old sources It tries apply patch with am command and if it fails then with command –apply
-
classmethod
create_prep_script
(prep)[source]¶ Function abstract special things from prep section and apply them to old sources
-
diff_cls
= None¶
-
exec_prep_script
= False¶
-
new_repo
= None¶
-
new_sources
= ''¶
-
non_interactive
= False¶
-
old_repo
= None¶
-
old_sources
= ''¶
-
output_data
= None¶
-
patch_sources_by_prep_script
= False¶
-
patches
= None¶
-
prep_section
= False¶
-
classmethod
run_patch
(old_dir, new_dir, rest_sources, patches, prep, **kwargs)[source]¶ The function can be used for patching one directory against another
-
source_dir
= ''¶
-
-
class
rebasehelper.patch_helper.
PatchBase
[source]¶ Class used for using several patching command tools, … Each method should overwrite method like run_check