incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1142132 - /incubator/ooo/trunk/tools/dev/fetch-all-cws.sh
Date Sat, 02 Jul 2011 00:37:14 GMT
Author: gstein
Date: Sat Jul  2 00:37:14 2011
New Revision: 1142132

URL: http://svn.apache.org/viewvc?rev=1142132&view=rev
Log:
No functional change.

* tools/dev/fetch-all-cws.sh: use an 'elif' and adjust indentation

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=1142132&r1=1142131&r2=1142132&view=diff
==============================================================================
--- incubator/ooo/trunk/tools/dev/fetch-all-cws.sh (original)
+++ incubator/ooo/trunk/tools/dev/fetch-all-cws.sh Sat Jul  2 00:37:14 2011
@@ -67,19 +67,20 @@ for cws in `sed -n '/^cws\//s#^cws/##p' 
     echo "============ '$cws' exists. Pulling ..."
     cd "$cws"
     hg pull "$REPOS/cws/$cws"
+
   elif test -e "$cws" ; then
     echo "ERROR: '$cws' exists and is not a directory."
     exit 1
+
+  # filter out empty CWS: hg incoming returns 1 if there's nothing to pull
+  elif 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
-    # 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
+    echo "============ '$cws' skipped: nothing to pull ..."
   fi
 
 done



Mime
View raw message