Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DonRobb

macrumors newbie
Original poster
Oct 17, 2011
18
0
I have local svn repository. I created it with the svn command line tools and then attached to it using xcode 4. I checked out my project to a folder. I used this working copy and comitted several versions. Everything is working good in terms of being able to see changes between versions and so forth. I would now like to checkout an old version as it was on one of the days I commited it. Can someone please tell me how? You guidence is very appreciated.
 
Xcode 4 removed the ability to revert to an older version of a file. You must revert from the command line with a reverse merge by using the svn merge command. The following Stack Overflow question should provide more help:

Better way to revert to a previous SVN revision of a file?

Thanks for the reply. I think from what I understand about the post. the reverse merge thing will change my working copy. What if I don't want to modify my working copy which I think is what reverting will do. I really just want to pull out a snapshot of the code as it was to a directory that is not the working copy. Can you descrbe how I can achieve that? When you use svn in Windows you can checkout any version and place it anywhere you want which is really what I would like. Is there a command line that can achieve that?
 
Use the svn checkout command to check out the code from the repository.

One of the answers to the Stack Overflow question I linked to in my previous response contains a link to an online Subversion book. That book is the best resource for information on Subversion commands and using Subversion from the command line.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.