pqm-submit: support for bound branches

David Allouche david at allouche.net
Mon Mar 6 01:05:30 GMT 2006


On Mon, 2006-03-06 at 11:38 +1100, Robert Collins wrote:
> === modified file 'a/pqm_submit.py'
> --- a/pqm_submit.py
> +++ b/pqm_submit.py
> @@ -93,6 +93,12 @@
>      target_base = config.public_branch()
>  
>      if not target_base:
> +        try:
> +            target_base = branch.get_bound_location()
> +        except AttributeError:
> +            pass
> +
> +    if not target_base:
>          target_base = branch.get_push_location()
>  
>      if not target_base:
> 
> 
> 
> This lets one have a branch bound to its nominal public location, which
> is sftp published to a slightly different url, and submit from the
> public location by:

I read that one about three times before deciding the code might make
more sense, then four more times before deciding you have probably
forgotten some important words.

Do you mean "this will make public_branch default to the bound branch
location, and then to the push location if the branch is not bound"?

> bzr push
> bzr pqm-submit -m foo

I guess I must have misunderstood then. I thought your patch was about
bound branches, not push...

Or maybe I just need to go to bed.
-- 
                                                            -- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060306/0ceabe08/attachment.pgp 


More information about the bazaar mailing list