Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN revert on server side

Tags:

revert

commit

svn

A very smart developer deleted almost an entire repository and committed it (rev 210). I have a working copy on my computer, but the repository is rather large.

I would like to create a new revision (211) that is identical to the last good revision (209). I don't want to keep anything from revision 210, which is the bad commit. It's the developers fault, and they will have to rewrite anything as far as I am concerned.

Ideas?

like image 870
Scott Crooks Avatar asked Dec 16 '22 04:12

Scott Crooks


1 Answers

This can be solved by reverse-merging:

The following command will return your working copy to the state of revision 209:

svn merge -c -210 .

Then commit:

svn ci -m "reverse merged revision 210"
like image 91
Paker Avatar answered Dec 25 '22 03:12

Paker