You could use the pySVN + the python diff tools to do this, while it is not bash, it maybe worth considering if you use this function on a more regular basis. It is a version of the wget solution but would have a nicer interface, well if you build it :)