Lorin Hochstein
Lorin Hochstein

Reputation: 59232

Create a bzr branch that selectively omits some commits from parent branch

Is it possible to create a branch of a bzr repository that selects omits certain changes? For example, let's say my repository is at revision 354, and I want to branch it, but I don't want to include the changes that were done in revision 247.

Note that I plan to merge in the changes from revision 247 at some point in the future. So I don't want to just make changes to the code that undo what revision 247 did, otherwise there will be a conflict later when I try to do the merge.

Is this type of selective branching possible with bzr?

Upvotes: 0

Views: 156

Answers (2)

GavinH
GavinH

Reputation: 2213

I think you're looking to Reverse Cherrypick. This will let you remove a single revision from a branch.

Upvotes: 1

AmanicA
AmanicA

Reputation: 5505

no. A revision always guarantees all of it's parent revisions. I don't think you will have too many conflicts if you first undo and commit that revision and then later re-apply it. If you are unsure branch into a temp directory and try it out.

Upvotes: 1

Related Questions