remove a revision

Asked by Timmie

Hello,
is it possible to remove a whole revision (e.g. rev 10) from the repository?

Which command can I use for this?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Pool
Solved:
Last query:
Last reply:
Revision history for this message
Best Martin Pool (mbp) said :
#1

Hi Tim,

It depends a bit on just what you mean by 'remove' and why you want to do it.

If you've just committed the revision and wish you hadn't committed it, use bzr uncommit. This leaves the revision in the repository but it will no longer by referenced by the branch, and won't be copied when people download the branch.

If a lot of history has been committed since then, look at the bzr-rebase plugin to let you synthesize a new line of history where that commit never happened.

If you need to remove all record of the revision from the repository, the best solution is to make a new repository, and branch into it just the branches you want to keep.

Revision history for this message
Timmie (timmie) said :
#2

Thanks Martin Pool, that solved my question.