remove a branch from a repo
Matthieu Moy
Matthieu.Moy at imag.fr
Wed Sep 27 13:57:21 BST 2006
William Dode <wilk-ml at flibuste.net> writes:
> Is there a way to remove a branch and all his history from a
> repository ?
> Of course if i rm -r the branch, the history stay in repo/.bzr
Indeed, bzr would need some kind of "garbage collection" to deal with
this situation, that is, find all revisions not pointed to by anyone
in the repository, and delete them permanently. The same problem
occurs if you "uncommit" a revision, or if you "bzr merge; bzr revert"
for example.
This garbage collection is not implemented in bzr AFAIK, but a
workaround is to create a new, fresh repository, and branch all the
branches except the one you don't want. A small shell script with
"find .bzr/" & co can help. I think there's a "push-repo" plugin
somewhere also.
--
Matthieu
More information about the bazaar
mailing list