qcommit on checkout should provide an update option when checkout out of date

Bug #439920 reported by Craig Hewetson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
Low
Gary van der Merwe

Bug Description

Current Problem:
We work with checkouts or bound branches.
When the checkout is out of date with the master then qcommit displays an error message and tells the user to run update.

Recommendation:
When the commit fails, open the qupdate dialog with a slightly different title.
Example:
The bound branch is out of date with the master. Do you wish to update?
This then allows the user to run the update and on closing this view will refresh the qcommit dialog (refresh the list of changes).
Thereby allowing the user to continue commiting changes.

This is extremely useful if the update produces changes that don't effect your code (Which happens quite often where I work.)

Related branches

tags: added: qcommit qupdate
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 439920] [NEW] qcommit on checkout should provide an update option when checkout out of date

Craig Hewetson пишет:
> Current Problem:
> We work with checkouts or bound branches.
> When the checkout is out of date with the master then qcommit displays an error message and tells the user to run update.
>
> Recommendation:
> When the commit fails, open the qupdate dialog with a slightly different title.

Currently qcommit run bzr as subprocess and don't have enough info about
the reason why commit failed. So I'm sure there is possible situations
when running qupdate will be wrong thing.

If your operation was failed and you close qcommit then your commit
message will be saved and restored next time. So it should be pretty
safe to close qcommit, run qupdate and again run qcommit.

In general case qupdate *can* produce conflicts. So committing just
after update could be a wrong thing.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote : Re: [Bug 439920] [NEW] qcommit on checkout should provide an update option when checkout out of date

>
> In general case qupdate *can* produce conflicts. So committing just
> after update could be a wrong thing.
>

Committing with conflicts won't be possible and will result in an error.

But I think they way it works now is good enough, I suppose the person that
complained about this to me
will eventually get use to it.

Closing this bug will be ok.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 439920] [NEW] qcommit on checkout should provide an update option when checkout out of date

Craig Hewetson пишет:
>> In general case qupdate *can* produce conflicts. So committing just
>> after update could be a wrong thing.
>>
>
> Committing with conflicts won't be possible and will result in an error.
>
> But I think they way it works now is good enough, I suppose the person that
> complained about this to me
> will eventually get use to it.
>
> Closing this bug will be ok.

I think we'd better to not over complicate qcommit dialog. It's already
very heavy.

Changed in qbzr:
status: New → Won't Fix
Revision history for this message
Gary van der Merwe (garyvdm) wrote :

While the suggestions as to how to fix this may not be agreeable, I feel that this is still a bug. I fact there are many more situations where you have to first close a dialogue, do something in another, and then go back to your first. We can't hope to be aware of all such situations/work flows, hence I feel that this bug report is valuable, hence reopening...

Changed in qbzr:
importance: Undecided → Low
status: Won't Fix → Confirmed
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

I started running into this situation alot and now decided to start working on this feature.
Would a button called "update" next to the "diff" button adequate? Also this button should only be visible when there is a master branch.

Also on a update should I execute the following:
self.process_widget.do_start(None, 'update', self.tree.branch.base)
only problem with the above is that the commit dialog closes.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

My fix relies on this patch to bzr core for bound branches:
https://code.launchpad.net/~garyvdm/bzr/commit-BoundBranchOutOfDate/+merge/20393

Changed in qbzr:
assignee: nobody → Gary van der Merwe (garyvdm)
milestone: none → 0.19b1
status: Confirmed → Fix Released
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote : Re: [Bug 439920] Re: qcommit on checkout should provide an update option when checkout out of date

Hi Gary,

Thanks for the fix, would this be available in bzr 2.2.x? or in bzr 2.1.x?

Revision history for this message
Gary van der Merwe (garyvdm) wrote : Re: [Bug 439920] Re: qcommit on checkout should provide an update option when checkout out of date

On 02/03/2010 15:18, Craig Hewetson wrote:
> Hi Gary,
>
> Thanks for the fix, would this be available in bzr 2.2.x? or in bzr
> 2.1.x?

Yhea, the timing on this on sucks. 6 months till the next stable release.

My gut feel is that that it should not go in to bzr 2.1. But it wont do
any harm to ask.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote : Re: [Bug 439920] Re: qcommit on checkout should provide an update option when checkout out of date

Well atleast the fix is in place, when its available, I know that a lot of
my colleges are going to like the feature.
Thanks alot.

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.