Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A shared repository in Bazaar stores all the revisions of all the branches. If you delete a branch that had some unique revisions in it, those revisions will still remain in the repository, and visible by the bzr heads --dead-only command, from the bzrtools plugin.

How to delete these revisions from the shared repository?

Or, how to delete branches in a way that their unique revisions will be cleaned up from the shared repository?

share|improve this question
up vote 1 down vote accepted

The only way to end up with a shared repository that does not contain these revisions is to create a new repository, and branch all the branches that you wish to keep into it.

Deleting revisions is not considered a safe operation because there may be some branch that Bazaar does not know about that depends on them.

share|improve this answer

Your Answer


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.