Subversion 1.4 also includes a -c switch that lets you target a single revision. This comes in very handy to revert one: the command you wrote can also be written svn merge -c -1708 (-c rev translates into -r rev-1:rev while -c -rev translates into -r rev:rev-1), which can easily enough be read as "merge the reverse of revision 1708".
You can also use revision keywords, that way you don't have to futz around with rev numbers. I use this to roll back my borked commits: svn merge -r COMMITTED:PREV /local/path/to/file
Subversion 1.4 also includes a
-cswitch that lets you target a single revision. This comes in very handy to revert one: the command you wrote can also be writtensvn merge -c -1708(-c revtranslates into-r rev-1:revwhile-c -revtranslates into-r rev:rev-1), which can easily enough be read as "merge the reverse of revision 1708".masklinn - 3rd January 2008 18:23 - #
You can also use revision keywords, that way you don't have to futz around with rev numbers. I use this to roll back my borked commits:
svn merge -r COMMITTED:PREV /local/path/to/file-c is gold! Serves me right for reading an old subversion book and not bothering to check if I could reverse merge!
If you are using TSVN, select revision(s) in log view, right click & select "Revert changes from this revision".
Suraj Barkale - 4th January 2008 14:45 - #