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

Bug #75780 reported by Nicholas Allen on 2006-12-14
18
Affects Status Importance Assigned to Milestone
Bazaar
Medium
Unassigned
Breezy
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 Edit Tag help
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.

Martin Pool (mbp) wrote :

I agree. Another reasonable name might be 'reverse'

Changed in bzr:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Aaron Bentley (abentley) wrote :

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

Jelmer Vernooij (jelmer) on 2011-02-01
tags: added: ui
Jelmer Vernooij (jelmer) on 2017-11-08
tags: added: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-05-11
tags: removed: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-05-12
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers