How do I rollback to a previous revision? So that my files are back to revision 400?
And then do I commit everything again?
TIMEX
2010-03-15 09:10:13
see new answer http://stackoverflow.com/questions/2445937/i-svn-updated-but-i-realize-i-messed-up/2446065#2446065
plod
2010-03-15 09:25:37
+3
A:
How about:
svn merge -r [current_version]:[previous_version] [repository_url]
svn commit -m “Reverting previous commit and going back to revision [previous_version].”
taken from http://mybravenewworld.wordpress.com/2007/11/13/subversion-how-to-revert-a-bad-commit/
plod
2010-03-15 09:26:30
This is correct, but I would add that while the contents of the file are back to what they were in revision 400, the new revision number will be at least 402--there is no true rollback.
JXG
2010-03-15 10:18:29