X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustrecvs;h=948d4f1d7b58f7933d9f2af8c7ca92c80113ab30;hb=407e4d6a3753379f1f6ed405220ee04a2c935b89;hp=fa24a0135ee0e7a669af648ed03e52528c108712;hpb=efc376101ac672a78bbf1689a040f8d4648352a8;p=fs%2Flustre-release.git diff --git a/lustrecvs b/lustrecvs index fa24a01..948d4f1 100755 --- a/lustrecvs +++ b/lustrecvs @@ -27,7 +27,14 @@ EOF if [ -z "$LUSTRECVS_UPDATED" ] ; then echo "$progname: updating lustrecvs" - cvs up -l || fatal 1 "Error updating lustrecvs" + + # If checking out a specific tag, make sure all of the files here are also + # checked out with the same tag to avoid later changes breaking things. + case "$1" in + v*|b_release_*) TAG="-r $1" ;; + esac + + cvs update -l $TAG export LUSTRECVS_UPDATED=yes exec "$0" "$@" fi @@ -61,8 +68,12 @@ case "$lustretag" in # These use special build directories + # Maintenance mode -- isolate build system changes b1_4*) buildtag="b1_4" ;; + # Maintenance mode -- isolate build system changes + b1_6*) buildtag="b1_6" ;; + b_release_1_4_6-patchless) buildtag="b1_4" ;; b_release_1_4_7-test) buildtag="b_release_1_4_7" ;; @@ -81,6 +92,8 @@ case "$lustretag" in # this is the branch table # keep this list sorted alphabetically! + *_gate) buildtag="b_build_gate" ;; + *) buildtag="HEAD" ;; @@ -126,6 +139,58 @@ cvs_cmd () fi } +hg_cmd () +{ + dir="$1" + base_url="$2" + repository="$3" + + if [ ! "$repository" ]; then + return + fi + + if ! which hg &> /dev/null; then + cat <