How to properly remove a bazaar branch from a repository?
What if I want to remove a branch completely, so it would be impossible to find if this branch existed?
I'm aware of the remove-branch
command, but are there any alternatives?
How to properly remove a bazaar branch from a repository?
What if I want to remove a branch completely, so it would be impossible to find if this branch existed?
I'm aware of the remove-branch
command, but are there any alternatives?
If you want to ditch the branch, you can just use plain
rm -rf branch_name
(or similar machinery on Windows, including cleaning Recycle Bin).Some history still be preserved in shared repository though, and could be found with
bzr heads --dead
command. If you absolutely need to be sure no hidden history left you need to do something more involved:bzr remove-branch
is the easiest way to remove a branch. If you can't use that command, can you mention why not?You can also just remove the branch directory manually, e.g.:
bzr rm -rf .bzr/branch
. This will however skip several checks thatbzr remove-branch
will do.