Alex Rivera | Logout

SVN - delete a revision, or make an older revision the head

Asked 2010-10-07T08:36:40.680
12

I'm fairly new to SVN and I've never had to revert back to a previous revision, although I can get a copy of a revision from the repository okay. I'm using TortoiseSVN and the Visual Studio SVN plugin.

I'd like to restore the trunk back to a previous revision.

How can I restore the trunk - e.g. rollback to a previous revision and make this the head?

thanks

Edit
Report

1 Answer

1

It's a common use for svn merge.
You need to specify a reverse difference (e.g. --revision 303:302 or by an equivalent --change -303):

 svn merge -c -303 http://svn.example.com/repos/calc/trunk
answered 2010-10-07T08:48:50.963

Your Answer