Whamcloud - gitweb
Branch b1_8
[fs/lustre-release.git] / lustrecvs
index d6afe49..1e86d0f 100755 (executable)
--- a/lustrecvs
+++ b/lustrecvs
@@ -88,6 +88,8 @@ case "$lustretag" in
     # this is the branch table
     # keep this list sorted alphabetically!
 
+    *_gate) buildtag="b_build_gate" ;;
+
     *)
         buildtag="HEAD"
        ;;
@@ -143,6 +145,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