I.e. with -f if caller specified -q, rather than always using -w. -q
would make the script carry on if it didn't manage to get the lock and
do the pull, which would be wrong. -w is wrong because it can block
for another long-running script.
: ${BRANCHES:=osstest xen-4.0-testing xen-4.1-testing xen-4.2-testing xen-4.3-testing xen-unstable qemu-upstream-unstable qemu-upstream-4.2-testing qemu-upstream-4.3-testing linux-3.10 linux-3.4 linux-arm-xen ${EXTRA_BRANCHES}}
export BRANCHES
-with-lock-ex -w data-tree-lock bash -ec '
+fetchwlem=$wlem
+if [ "x$fetchwlem" = x-q ]; then
+ fetchwlem=-f
+fi
+
+with-lock-ex $fetchwlem data-tree-lock bash -ec '
exec >>$LOGFILE
date
printf "%s\n" "$FOR_LOGFILE"