Eu usaria uma função de shell:
svn () {
if [[ $1 == "ci" || $1 == "commit" ]] && [[ $PWD != *"-bb"* ]]; then
echo "don't commit to someone else's branch" >&2
return 1
fi
# now, do the actual svn command
command svn "$@" # quotes are crucial here
}