From 7ff04c75518c354741b73abefdbcda0a90416b60 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Thu, 11 Jun 2015 10:46:56 +1000 Subject: [PATCH] do_merge: sprinkle notify-send's around to help the operator --- do_merge | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/do_merge b/do_merge index b86f527..47e02d8 100755 --- a/do_merge +++ b/do_merge @@ -110,6 +110,7 @@ for h in $heads; do [ -f "../pre-merge/$tree" ] && { for p in $(cat "../pre-merge/$tree"); do "$bin_dir/do_patch" -n "$p" || { + notify-send -u critical -t 0 "premerge patch failed" bash -i || exit } done @@ -131,6 +132,7 @@ for h in $heads; do "$bin_dir/do_rm" $rm_files } git diff 2>&1 | egrep -q '<<<<<|^\*' && { + notify-send -u critical -t 0 "merge failed" bash -i || exit } # [ "$(git status --porcelain)" ] && { @@ -143,6 +145,7 @@ for h in $heads; do [ -f "../merge-fixes/$tree" ] && { for p in $(cat "../merge-fixes/$tree"); do "$bin_dir/merge_fix" -n "$p" || { + notify-send -u critical -t 0 "post merge patch failed" bash -i || exit } done @@ -165,10 +168,12 @@ for h in $heads; do continue git push -f "$build_host":"$build_dir" master:refs/heads/next || { echo git push failed 1>&2 + notify-send -u critical -t 0 "push failed" bash -i || exit } "$bin_dir/do_build" || { echo Build failed 1>&2 + notify-send -u critical -t 0 "build failed" bash -i || exit } need_build=false -- 2.39.5