how to revert an older revision

Asked by Lucius

I introduced a bug in revision 331. I am now on revision 400. How can I revert the changes I made in revision 331, but not revert subsequent changes?

I tried various commands like, some according to help, but nothing does what I want:

bzr revert -r 331 <-- reverts everything up to and including 331.
bzr revert -r 331..332 <-- revision takes exactly one revision identifier
bzr merge . -r 331..332 <-- no changes found

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Wouter van Heyst
Solved:
Last query:
Last reply:
Revision history for this message
Best Wouter van Heyst (larstiq) said :
#1

On Sat, Jul 04, 2009 at 04:09:24PM -0000, Lucius wrote:
> New question #76100 on Bazaar:
> https://answers.launchpad.net/bzr/+question/76100
>
> I introduced a bug in revision 331. I am now on revision 400. How can I revert the changes I made in revision 331, but not revert subsequent changes?
>
> I tried various commands like, some according to help, but nothing does what I want:
>
> bzr revert -r 331 <-- reverts everything up to and including 331.
> bzr revert -r 331..332 <-- revision takes exactly one revision identifier
> bzr merge . -r 331..332 <-- no changes found

What I would do:

    bzr merge . -r 332..331

That would merge the reverse of your changes, thereby
effectively cancelling them.

Wouter van Heyst

Revision history for this message
Lucius (luciusf) said :
#2

Thanks Wouter van Heyst, that solved my question.