tags:

views:

28

answers:

2

I know the revision number that this mistake happened, then how can I roll back?

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
the idea is correct, but the URI is not - it should be without `/trunk` since the deleted directory is `branches`
Dmitry Yudakov
@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
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