SVN: is it possible to delete a branch that was copied removed etc for good?
- by dimus
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
keep only last few revisions of the
history and put current repository
as an archive on the web
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?