summaryrefslogtreecommitdiff
path: root/backflip
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2015-06-24 22:55:52 +0200
committerYvan Roux <yvan.roux@linaro.org>2015-06-25 16:48:10 +0200
commitfef64623a2f4bffd91374cd7626a7bd24a9ddfd8 (patch)
treed69a04227af3996975a4382c3404da60c1d6b352 /backflip
parent600c9b07ae845daa90cdc475b7e94ccec08272d5 (diff)
Add the command line to do the backport in interactive mode in case of
issues. Change-Id: I1515ffab772f5573bbf0971d1104eef460729799
Diffstat (limited to 'backflip')
-rwxr-xr-xbackflip12
1 files changed, 11 insertions, 1 deletions
diff --git a/backflip b/backflip
index aaa2c0e..a0bde9c 100755
--- a/backflip
+++ b/backflip
@@ -132,7 +132,13 @@ compare() {
clean() {
git reset --hard
- git checkout ${DEV_BRANCH}
+ git checkout ${REF_BRANCH}
+ if [ $1 -ne 0 ]; then
+ echo -e "\n${lines}"
+ echo -e "INTERACTIVE MODE COMMAND LINE TO REPRODUCE AND/OR FIX THE ISSUE:"
+ echo -e "$0 -v $VERSION -b $DEV_BRANCH -r $REF_BRANCH $RARGS"
+ echo -e "${lines}"
+ fi
exit $1
}
@@ -161,6 +167,10 @@ mkdir $TMPDIR
# ------------------------------------------------------------------------------
for REV in "$@"; do # Beginning of Stacked Backport Loop
# ------------------------------------------------------------------------------
+# Keep remaining args for error messages
+RARGS=$@
+shift
+
PREFIX=${PREFIX}-${REV}
if [ -n "${PREV}" ]; then