Subversion (svn)
svn repository not valid for xcode
svn revert commit
svn undo revert
\n This email address is being protected from spambots. You need JavaScript enabled to view it. :4000/repo/trunk -->
svn repository not valid for xcode
When adding a new repository to xcode4, the repository might not be recognized as valid. This can be because the password is not accepted. In this case, whatever password you type in the repository-dialog in xcode will not be accepted (even if it's a valid). You will see the message "unable to load revisions".What you need to do it force svn to ask you for a password in the terminal.
Use spotlight and open 'terminal' Type 'svn co --username=myname svn://www.mydomain.com:port/svn/myrepository/ . svn will now ask you for the password - enter it. Now switch back to the repository browser in xcode4 and it will be recognized (green little dots instead of red ones)
svn revert commit
To revert the changes from one specific (previous) commit:
revision message 100 more final changes 99 final changes 98 some changes which we wanted to testRight-click in windows-explorer on your repository to open the torsoiseSVN shell select tortoise-svn/show log in the revision-history, right-click on the one you want to revert (in our example, revision '98') select 'revert changes from this revision' This will reverse-merge the changes into your local copy. The repository isn't changed - so to make the revert 'final' you need to commit it back into your repository. This will create a new revision '101' which undoes the changes from '98'.
svn undo revert
Now assume that we come to the conclusion we need to get back the changes from '98' again. How can we do this? Well, we can do this by reversing the commit which reversed commit 98. So effectively, we'll 'reverse commit 101' and then commit this back into the repository as revision 102
revision message 102 reverted commit 101 (so in effect we re-applied commit 98) 101 reverted commit 98 100 more final changes 99 final changes 98 some changes which we wanted to test