SVN: is it possible to delete a branch that was copied removed etc for good?

Posted by dimus on Stack Overflow See other posts from Stack Overflow or by dimus
Published on 2010-03-30T20:50:30Z Indexed on 2010/03/30 20:53 UTC
Read the original article Hit count: 407

Filed under:
|

I have to remove a branch from svn history for good. Normally I would use

svnadmin dump /path/to/repo |svndumpfilter --drop-empty-revs --renumber-revs exclude /branches/bad_branch

However this branch was not just created, but also moved and then removed and dump script fails to process downstream information with messages like: Invalid copy source path '/branches/bad_branch'

So I imagine 2 ways to cope with the problem

  1. keep only last few revisions of the history and put current repository as an archive on the web

  2. make a dump up to the revision where the 'bad_branch' was created and apply the rest of the changes as a patch, therefore losing history of a few recent commits.

Is there a better, cleaner way to deal with this?

© Stack Overflow or respective owner

Related posts about svn

Related posts about svnadmin