Subversion scripts revisited

#!/usr/bin/bash## Call this script or copy and paste the content into your bash_rc script or similar# profile script.## Copy from heresub () {svn --username [myuser] --password [mypass] $*}subswitch() { if [ $# != 4 ] then echo "Usage: Switching from 'desa' to 'stbl' branch." echo " subswitch desa stbl -r1001:1003 --dry-run (on a 'stbl' wc)" else sub switch `svn info | grep "^URL: " | cut -c6-250 | sed "s/\/$1\//\/$2\//"` . fi}submerge() { if [ $# != 4 ] then echo "Usage: Merging a rev-range from 'desa' on 'stbl' branch." echo " submerge desa stbl -r1001:1003 --dry-run (on a 'stbl' wc)" else sub merge $3 $4 `svn info | grep "^URL: " | cut -c6-250 | sed "s/\/$1\//\/$2\//"` . fi}