I know the revision number that this mistake happened, then how can I roll back?
views:
28answers:
2
A:
Referring to the svn manual section Undoing Changes the following procedure is applied to undo changes:
svn merge -r 303:302 http://svn.example.com/repos/calc/trunk
svn commit -m "Undoing change committed in r303."
zellus
2010-10-23 07:26:39
the idea is correct, but the URI is not - it should be without `/trunk` since the deleted directory is `branches`
Dmitry Yudakov
2010-10-23 12:37:43
@Dmitry Yudakov: The commands are plain copies from documentation. You're right, that I did not refer to your post. Nevertheless one should be able to adapt the url as needed.
zellus
2010-10-23 13:11:57
A:
You copy the branches directory from the last not deleted revision back into the current directory structure.
svn cp /path/to/repo/branches@Just-before-delete-revision /path/to/repo/
Rudi
2010-10-25 12:00:29