X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustrecvs;h=1e86d0f8246979e18841432864328502f039b343;hb=0d4dbdda134a9fa1e349d6c2dd10257e7638834a;hp=fa24a0135ee0e7a669af648ed03e52528c108712;hpb=3553222b7319e3f46bfb3dc67e3f71f3d8440aba;p=fs%2Flustre-release.git diff --git a/lustrecvs b/lustrecvs index fa24a01..1e86d0f 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 @@ -81,6 +88,8 @@ case "$lustretag" in # this is the branch table # keep this list sorted alphabetically! + *_gate) buildtag="b_build_gate" ;; + *) buildtag="HEAD" ;; @@ -126,6 +135,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 <