[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/5] mg-branch-setup: Make initial push optional in mg-branch-setup



Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 mg-branch-setup |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/mg-branch-setup b/mg-branch-setup
index b0c9712..d465882 100755
--- a/mg-branch-setup
+++ b/mg-branch-setup
@@ -1,7 +1,7 @@
 #!/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
 #
@@ -33,19 +33,25 @@ mode=$1; shift
 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
        ;;
 *)
@@ -83,6 +89,8 @@ fi
 
 if $push; then
        x ./ap-push $branch "$push_version"~0
+fi
+if $fetchbase; then
        x ./ap-fetch-version-baseline $branch
 fi
 
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.