qbind command needed

Bug #385111 reported by Ian Clatworthy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
Wishlist
Javier Derderyan

Bug Description

Binding/unbinding in an important part of a unique feature to Bazaar: bound branches.

The qbind dialog can be a simple one, namely ...

  Branch: ________ (Browse)

with buttons of "Cancel" and "Bind".

If branch.get_old_bound_location() returns a value, the text entry field should be populated with it.

Implementation wise, I'd be tempted to reuse the code out of builtins.cmd_bind.run(), trapping the various exceptions and presenting the right message dialogs accordingly. (I don't think SubProcessDialog is worth it here.)

Related branches

Changed in qbzr:
importance: Undecided → Wishlist
status: New → Confirmed
tags: added: feature-request
Changed in qbzr:
assignee: nobody → Javier Der Derian (javierder)
Revision history for this message
Gary van der Merwe (garyvdm) wrote : Re: [Bug 385111] [NEW] qbind command needed

On Tue, Jun 9, 2009 at 10:35 AM, Ian
Clatworthy<email address hidden> wrote:
> Implementation wise, I'd be tempted to reuse the code out of
> builtins.cmd_bind.run(), trapping the various exceptions and presenting
> the right message dialogs accordingly. (I don't think SubProcessDialog
> is worth it here.)

This probably should the same dialog as qswitch, and qswitch may need
to update files in the working tree, which may take a while. So
disagree - I think it makes sense to make it a SubProcessDialog.

Revision history for this message
Javier Derderyan (javierder) wrote :

bind is not the same that switch.
Bind only adds the new bound location, but doesn't update the working tree.
"Convert the current branch into a checkout of the supplied branch.
Once converted into a checkout, commits must succeed on the master branch before they will be applied to the local branch."

But in switch: "the working tree is updated and uncommitted changes are merged. The user can commit or revert these as they desire"

Revision history for this message
Javier Derderyan (javierder) wrote :

Ian, branch.get_old_bound_location() is the function you wanted to say?
It returns the branch "we used to be bound to", but if the working directory is currently bound but never "used to be bound to..." returns an empty string.

maybe you mean branch.get_bound_location()?

Revision history for this message
Javier Derderyan (javierder) wrote :

Ok, I just noticed the difference. get_old_bound_location is working with new branches types.

Changed in qbzr:
milestone: none → 0.13
status: Confirmed → In Progress
Changed in qbzr:
milestone: 0.13 → none
Changed in qbzr:
milestone: none → 0.14
status: In Progress → Fix Released
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.