aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2023-12-22 13:22:26 -0800
committerSeongJae Park <sj@kernel.org>2023-12-22 13:22:26 -0800
commit4aa88e15974e0f787ec46643b613ba9aefb2bb9d (patch)
tree7275e574402ac32d349fa5c086ea93aff6aa7493
parenta62572d512e579e27df9bdbe4145485547df77f2 (diff)
downloaddamon-hack-4aa88e15974e0f787ec46643b613ba9aefb2bb9d.tar.gz
rebase_damon_next_on_mm_unstable: Provide a better instruction for cherry-pick failure
Signed-off-by: SeongJae Park <sj@kernel.org>
-rwxr-xr-xrebase_damon_next_on_mm_unstable.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/rebase_damon_next_on_mm_unstable.sh b/rebase_damon_next_on_mm_unstable.sh
index df1a63c..436d06e 100755
--- a/rebase_damon_next_on_mm_unstable.sh
+++ b/rebase_damon_next_on_mm_unstable.sh
@@ -83,8 +83,12 @@ do
if ! git cherry-pick --allow-empty "$commit"
then
- echo "Cherry-pick failed."
- echo "Resolve it and do 'git branch -M damon/next.new damon/next'"
+ echo "Cherry-pick failed for $commit."
+ echo "Resolve it, further apply"
+ echo $(./unmerged_commits.sh \
+ "$old_mm_unstable..damon/next.old" \
+ "$new_mainline_base..$new_mm_unstable")
+ echo "and do 'git branch -M damon/next.new damon/next'"
exit 1
fi
done