Simple one-liner for getting the svn revision number - useful for shell scripts :

svn log --revision "HEAD" | head -2 | tail -1 | awk '{print $1}' | cut -c 2-