revert should clear saved commit data.

Bug #430038 reported by Gary van der Merwe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Confirmed
Medium
Unassigned

Bug Description

If I do bzr revert, it is *very* unlikely that I'm going to use the saved commit data, either from uncommit, or from canceling a qcommit dialog. Hence, bzr revert should clear the data.

Changed in qbzr:
assignee: nobody → Alexander Belchenko (bialix)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Lukáš Lalinský (luks) wrote :

Same for switch, but I doubt there is a hook for that.

Revision history for this message
Gary van der Merwe (garyvdm) wrote : Re: [Bug 430038] Re: revert should clear saved commit data.

2009/9/15 Lukáš Lalinský <email address hidden>:
> Same for switch, but I doubt there is a hook for that.

Switch will merge the uncommitted changes in the working tree with the
branch you are switching to, so the save commit data will still be
relevant.

Revision history for this message
Alexander Belchenko (bialix) wrote :

There is possible 2 cases for revert:

1) revert entire tree + pending merges
2) selective revert

I think in the case 1 saved commit data is no more relevant. But in the case of 2 it's not clear what is right thing.

Changed in qbzr:
importance: Medium → High
Revision history for this message
Alexander Belchenko (bialix) wrote :

Gary, is there any hook in bzr that will be invoked at revert command? I don't see any one.

I can provide fix when we run qrevert, but I don't see a sane way to do in plain revert.
Overloading std revert command is bad approach as we learn from merge --qpreview.

Thoughts?

Revision history for this message
Alexander Belchenko (bialix) wrote :

About switch: as part of new commit_data approach we save old_revid/new_revid pair. We can use new_revid value to check that user trying to commit a tree from new_revid revision. If it's not then we can throw away saved commit_data.

Lukas, what do you think?

Changed in qbzr:
importance: High → Medium
assignee: Alexander Belchenko (bialix) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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