How (in TortoiseSVN) do I update my Working copy to a past revision without losing any versions?
SVN newbie (although so far I really like it (coming from CVS)
Ok, here's my scenario:
I had:
- Version x
- Then I copied a set of old files over the top of those
- Checked them in and created a Tag ("OldVersion")
- 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 li开发者_如何转开发ke 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).
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.
精彩评论