You can use bash to manually view the directory tree using post-order walk:
#!/bin/bash
visit() {
local file
for file in $1/*; do
if [ -d "$file" ]; then
visit "$file";
if [[ $file =~ /foo$ ]]; then
svn move $file ${file%foo}bar;
fi
fi
done
}
if [ $# -ne 1 ]; then
exit
fi
visit $1
, .