diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2015-06-24 22:55:52 +0200 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2015-06-25 16:48:10 +0200 |
commit | fef64623a2f4bffd91374cd7626a7bd24a9ddfd8 (patch) | |
tree | d69a04227af3996975a4382c3404da60c1d6b352 /backflip | |
parent | 600c9b07ae845daa90cdc475b7e94ccec08272d5 (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-x | backflip | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |