Whamcloud - gitweb
With 1.6 heading towards maintenance mode, use a dedicated branch of the
[fs/lustre-release.git] / lustrecvs
index d6afe49..948d4f1 100755 (executable)
--- a/lustrecvs
+++ b/lustrecvs
@@ -68,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" ;;
 
@@ -88,6 +92,8 @@ case "$lustretag" in
     # this is the branch table
     # keep this list sorted alphabetically!
 
+    *_gate) buildtag="b_build_gate" ;;
+
     *)
         buildtag="HEAD"
        ;;
@@ -143,6 +149,16 @@ hg_cmd ()
         return
     fi
 
+    if ! which hg &> /dev/null; then
+    cat <<EOF
+
+Error: Mercurial is missing, try 'yum install mercurial', 'apt-get install
+mercurial' or try http://rpmfind.net/linux/rpm2html/search.php?query=mercurial
+EOF
+        error_modules="$dir $error_modules"
+        return
+    fi
+
     url="$base_url/$repository"
 
     # create a cvs date format that will survive shell expansion