I spoke too soon in my previous post about breaking things.
I am trying to revert back to revision 1124 using the command svn update -r 1124
but I keep getting an error message as follows:
[prague]$ svn update -r1024
U app/webroot/css/group_themes/green.css
U app/webroot/css/style.css
Skipped 'app/webroot/index.php'
svn: Failed to add directory 'app/webroot/images/users': an unversioned directory of the same name already exists
We got some stuff back up but still not the exact version which I know I had checked out last night... I thought it would be much easier to just revert back to a specific revision :(
Without commit
Try to checkout revision 1124 in a new empty directory, so you won't have conflicts with already existing directories.
So svn checkout -r 1124
in a new directory.
With commit
According to the svn manual, if you want to commit a previous revision, you need to use reverse merging. See http://svnbook.red-bean.com/en/1.0/ch04s04.html, 'Undoing Changes'.
svn merge -c -1124 http://svn.example.com/repos/calc/trunk
followed by
svn commit -m "Rollback merge to revision 1124"
Failed to add directory 'app/webroot/images/users': an unversioned directory of the same name already exists
Sounds clear to me: there already is a directory with that name, and it's not versioned. You can opt for two things: either remove the directory and update again, or rename (probably smartest) and update again.
$ mv app/webroot/images/users app/webroot/images/users.orig/
$ svn update -r1024
As an aside, do yourself a favour and look at some of the alternatives to SVN, such as Mercurial, Bazaar or Git. I've found the switch to be very pleasant ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With