36

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?

2 Answers 2

55

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.

0
12

You should do a reverse merge.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.