Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to roll back my SVN repository , I just want to tell this revision now should be a head revision .

Is it possible to do so in SVN ?

Thanks .

share|improve this question
1  
duplicate of stackoverflow.com/questions/402159/… –  AlexD May 29 '11 at 7:49

2 Answers 2

up vote 2 down vote accepted

You can't officially "roll back". You can copy the favored version to a new node just off the root, and then delete everything else, and then move all the children of the new node to the root, and then delete the new node.

Or, you can do an admin dump and put in params to discard everything after the favored version, then reimport into a new repository and rename accordingly.

share|improve this answer

I've only done this in the lab but you can change the contents of /path/to/repo/db/current file to the desired rev and it seems to do what you ask. Only done it a couple times but new commits did work. Be good to make a backup first.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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