From: Ian Jackson Subject: [OSSTEST PATCH 2/5] mg-branch-setup: Make initial push optional in mg-branch-setup Date: Tue, 31 Mar 2015 15:23:58 +0100 Message-ID: <1427811840-14519-3-git-send-email-ian.jackson@eu.citrix.com> References: <1427811840-14519-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YcxAC-0007ht-T4 for xen-devel@lists.xenproject.org; Tue, 31 Mar 2015 14:29:08 +0000 In-Reply-To: <1427811840-14519-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- 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