incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r1142081 - /incubator/ooo/trunk/tools/dev/fetch-all-cws.sh
Date Fri, 01 Jul 2011 20:29:29 GMT
Author: mst
Date: Fri Jul  1 20:29:29 2011
New Revision: 1142081

URL: http://svn.apache.org/viewvc?rev=1142081&view=rev
Log:
fetch-all-cws.sh: skip empty CWSes

Modified:
    incubator/ooo/trunk/tools/dev/fetch-all-cws.sh

Modified: incubator/ooo/trunk/tools/dev/fetch-all-cws.sh
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/tools/dev/fetch-all-cws.sh?rev=1142081&r1=1142080&r2=1142081&view=diff
==============================================================================
--- incubator/ooo/trunk/tools/dev/fetch-all-cws.sh (original)
+++ incubator/ooo/trunk/tools/dev/fetch-all-cws.sh Fri Jul  1 20:29:29 2011
@@ -71,10 +71,15 @@ for cws in `sed -n '/^cws\//s#^cws/##p' 
     echo "ERROR: '$cws' exists and is not a directory."
     exit 1
   else
-    echo "============ '$cws' is being created ..."
-    hg clone -U "$dev300" "$cws"
-    cd "$cws"
-    hg pull "$REPOS/cws/$cws"
+    # filter out empty CWS: hg incoming returns 1 if there's nothing to pull
+    if hg -R "$dev300" incoming "$REPOS/cws/$cws" >/dev/null; then
+        echo "============ '$cws' is being created ..."
+        hg clone -U "$dev300" "$cws"
+        cd "$cws"
+        hg pull "$REPOS/cws/$cws"
+    else
+        echo "============ '$cws' skipped: nothing to pull ..."
+    fi
   fi
 
 done



Mime
View raw message