You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2011/07/01 22:29:29 UTC
svn commit: r1142081 - /incubator/ooo/trunk/tools/dev/fetch-all-cws.sh
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