In general terms, you can apply reverse diff for each range that you want to cancel. For instance:
svn diff -r1276:1285 > first.patch
to create a diff (note that the final version is a version number greater than the last one you want to undo), then
patch -R < first.patch
The -R switch tells patch apply the patch in reverse order. svn diff tells you what you did, so patch -R cancels this. Of course, you may have conflicts that you must resolve manually.
source share