Subversion: Can trunk be reset to previous revision after branching/tagging?

ivan_ivanovich_ivanoff picture ivan_ivanovich_ivanoff · Sep 2, 2009 · Viewed 7.3k times · Source

I have many projects depending on each other in trunk. I made several commits which led to dependency problems.
I tagged /trunk to /tags/trunk-experimental and now want to "revert" the last N changes (which led to problems), so that my /trunk is good again.

Can this be done in a straightforward way?

I tried to just check out from a certain revision, but this is bad, because an update changes everything back to latest revision (which contains dependency problems)

Here's a timeline to understand my question better:

  • revision 1000 (good)
  • made several changes which lead to dependency problems,
    several commits, now at revision 1050 (bad)
  • copied /trunk to /tags/trunk-experimental (revision 1051)
  • don't know what to do with trunk to "revert" it back to revision 1000

Answer

Jon Skeet picture Jon Skeet · Sep 2, 2009

Just do a reverse merge:

svn merge -r1051:1000 .

and commit as usual.