stable/apply-stable-patches: look for reverts as fixes
Look for reverts of commits which we backported or cherry-picked.
$ apply-stable-patches --range=Ubuntu-4.4.0-202.234..Ubuntu-4.4.0-203.235 --sob --check-already --check-fixes
Possible fixes found:
Commit "UBUNTU: SAUCE: Revert "mm: check that mm is still valid in madvise()"" fixes d8f6fb767b2fed2e0ca85d85acfa9a0669e34f48
Signed-off-by: Krzysztof Kozlowski <email address hidden>
The message "Looking for stable commits inside provided range" was
immediately overwritten by final "Applying stable changes found in the
current branch" making an impression that no commits were checked.
Signed-off-by: Krzysztof Kozlowski <email address hidden>
stable/apply-stable-patches: drop unused '--debug' and allow multiple '--verbose'
The '--debug' argument was parsed but not used (the
ApplyStablePatches.debug_run member was always False). Drop this
argument and instead allow multiple '--verbose' to trigger the debug.
Signed-off-by: Krzysztof Kozlowski <email address hidden>
The script had arguments description but lacked an overview, usage and
description of purpose. This was explained in initial commit
162dac8564ac ("stable/apply-stable-patches: new script to help with
stable maintenance"), so copy the text from there.
Signed-off-by: Krzysztof Kozlowski <email address hidden>
The cranking looks slightly different for folks with upload rights.
Split the upload part into two separate pieces (w/wo upload rights) and
document push destination.
Signed-off-by: Krzysztof Kozlowski <email address hidden>
cranky: review-master-changes: properly find base version with ~suffix
If base version of a derivative is a backport with ~suffix, the first
cranks will have a changelog entry containing '~', however the tags have
it replaced with '_'. For example bionic:ibm-gt-5.4 is based on
bionic:hwe-5.4, therefore first changelog entries have
5.4.0-91.102~18.04.1 and tag Ubuntu-hwe-5.4-5.4.0-91.102_18.04.1.
Replace the '~' with '_' when looking for tags to cover such case.
Signed-off-by: Krzysztof Kozlowski <email address hidden>
Acked-by: Tim Gardner <email address hidden>