tags:

views:

2292

answers:

2

One of the files in my current head revision got corrupted. I want to make an older revision of that file the head revision as usually people sync to head revsion in my project. How to do that?

+19  A: 

You should revert all changes since that old reversion. In principle,

svn merge -rHEAD:oldrev filename
svn commit -m "rolled back to oldrev"

should do. The later revisions are still there, but reverted.

Martin v. Löwis
That worked...Thanks.
Manoj
+5  A: 

You should do a reverse merge.

CMS
Thanks for the detailed link.
Manoj
You're welcome, the SVN Book is always useful :-)
CMS