bzr should have a command to back-out changes made in a previous commit

Bug #75780 reported by Nicholas Allen
18
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

It would be nice if bzr had a command to back-out changes made in a previous commit. This can be somewhat done using the merge command but it is not very intuitive and cannot be done for individual files but only the whole branch.

The command would make uncommitted changes that would back out a given committed changeset or list/range of changesets. It could be added to the existing revert command or a new command (say "back-out") could be added.

Tags: ui
Revision history for this message
Nicholas Allen (nick-allen) wrote :

I would like to use it like this:

bzr back-out 15,17 file -- back out changes made in revisions 15 and 17 for file

bzr back-out 15..20 file -- back out changes made in revisions 15 to 20 inclusive

bzr back-out revid:XXXXXXXX file -- back out changes made in given revid

If file name not provided then applies to whole branch.

Revision history for this message
Martin Pool (mbp) wrote :

I agree. Another reasonable name might be 'reverse'

Changed in bzr:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Aaron Bentley (abentley) wrote :

Actually, merge can be used to remove changes for single files, contrary to the description.

Jelmer Vernooij (jelmer)
tags: added: ui
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.