Subversion Reversion

Or “Please Please Just Make the Crazy Things Go Away”

Reversion becomes essential when you start working with bargain software consultants abroad. Though a bit unintuitive, Subversion makes it pretty easy to do.

svn merge -r head:56 SomeClass.java

This will revert from the working revision HEAD to revision 56. Now simply:

svn commit -m "What the #%&* were you thinking?!"

to push the previous version back to HEAD.

Reversion in Subversion is actually a kind of merge. More details in the Subversion Book.

Tags: , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...

2 Responses to “Subversion Reversion”

  1. Chris Says:

    Yeah, merge is fine for this. The head:56 means it’s actually applying a reverse diff (because head >= 56).

    At first I thought you wanted to obliterate the change even from the repository history.. surprisingly, can sorta be done with svnadmin dump, but that way lies madness. Particularly if you’re actually collaborating with other folks’ working copies.

  2. nurikabe Says:

    Yeah, we’re actually just sweeping crazy things under the rug to keep the madness at bay.

    I think it may too late though.

Leave a Reply