Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
#!/bin/bash
#
# usage:
-# ./mg-branch-setup BRANCH bisect INITIAL-TESTED-VERSION
+# ./mg-branch-setup BRANCH bisect [INITIAL-TESTED-VERSION]
# ./mg-branch-setup BRANCH no-bisect
# ./mg-branch-setup BRANCH no-check
#
case "$mode" in
bisect)
fetch=true
- push=true
bisect=true
- push_version="$1"; shift
- need_value "$push_version"
+ push=false
+ fetchbase=true
+ if [ $# != 0 ]; then
+ push=true
+ push_version="$1"; shift
+ need_value "$push_version"
+ fi
;;
no-bisect)
fetch=true
push=false
+ fetchbase=false
bisect=false
;;
no-check)
fetch=false
push=false
+ fetchbase=false
bisect=false
;;
*)
if $push; then
x ./ap-push $branch "$push_version"~0
+fi
+if $fetchbase; then
x ./ap-fetch-version-baseline $branch
fi