views:

16

answers:

1

SVN newbie (although so far I really like it (coming from CVS)

Ok, here's my scenario:

I had:

  1. Version x
  2. Then I copied a set of old files over the top of those
  3. Checked them in and created a Tag ("OldVersion")
  4. I now want to revert back to version X while still preserving "OldVersion")

It seems like something like a BackMerge might do it but that would lose my changes (I think)

I naively tried Update to Revision... but apparently that' really more to "peek" at what things looked like in that Revision.

Any suggestions?

(The obvious is to get a copy of Version X and copy it over the Revision at tag "OldVersion" and continue on my merry way, but I'd like to do this the "proper way" and maybe learn something here).

+4  A: 

If you did your step 3 as one commit, then you should be able to do the following:

  • Right click on your workspace directory and use TortoiseSVN -> Show Log
  • Select the 'old version' revision you committed and right click and 'revert changes from this revision'
  • Commit

This will perform a reverse merge. This is described in the svn manual under Undoing Changes.

Joshua McKinnon