Poor experience of trying to create a stacked branch on lp

Jonathan Lange jml at mumak.net
Sun Sep 28 23:25:49 BST 2008


On Sun, Sep 28, 2008 at 9:20 PM, Gary van der Merwe <garyvdm at gmail.com> wrote:
> Hi
>
> I want to share my experience of trying to create a stacked branch on lp.
>
> I have a branch of qbzr that I want to push to lp. I want it to be
> stacked on the qbzr trunk so I don' t have to push all revisions. So I
> tried:
>
> F:\qbzr\extdiff>bzr push lp:~qbzr-dev/qbzr/extdiff --stacked-on=lp:qbzr
> Connected (version 2.0, client Twisted)
> Authentication (publickey) successful!
> Secsh channel 1 opened.
>
> bzr: ERROR: Not a branch: "F:/qbzr/extdiff/lp:qbzr/".
>
> Ok - --stacked-on= does not support directory services. Try:
>

Also, the behaviour will vary a lot depending on exactly which URL
Bazaar stores in the branch.conf. If it stores
bzr+ssh://bazaar.launchpad.net/... then only people with SSH keys on
Launchpad will be able to access the branch. In addition, Launchpad's
internal systems won't be able to read the branch, since they don't
have SSH keys.

Using the full HTTP URL is safest for now.

> F:\qbzr\extdiff>bzr push lp:~qbzr-dev/qbzr/extdiff
> --stacked-on=http://bazaar.launchpad.net/~qbzr-dev/qbzr/trunk/
> Connected (version 2.0, client Twisted)
> Authentication (publickey) successful!
> Secsh channel 1 opened.
> Ignoring request for a stacked branch as repository already exists at
> the destination location.
>
> It started pushing all rev. So, I hit ctrl-c
>

This looks to me like the right incantation, although I haven't
actually tried it myself.

Bug 272372 will unfortunately cause some problems, even if this
command succeeds.

> Ok - Delete the branch through the lp interface, and try again:
>
...
> F:\qbzr\extdiff>bzr branch lp:qbzr lp:~qbzr-dev/qbzr/extdiff --stacked
> Connected (version 2.0, client Twisted)
> Authentication (publickey) successful!
> Secsh channel 1 opened.
> Connected (version 2.0, client Twisted)
> Authentication (publickey) successful!
> Secsh channel 1 opened.
> Source format does not support stacking, using format: '1.6'
>  Packs 5 (adds stacking support, requires bzr 1.6)
>
> Connected (version 2.0, client Twisted)
> Authentication (publickey) successful!
> Secsh channel 1 opened.
> bzr: ERROR: The branch
> 'bzr+ssh://garyvdm@bazaar.launchpad.net/%7Eqbzr-dev/qbzr/extdiff/'(Bazaar
> Branch Format 6 (bzr 0.15))
>
> I'm not sure if I'm doing something wrong. But this was very frustrating for me.

I've had my best experiences with stacked branches when both branches
were 1.6 format and the repositories were also 1.6 format. I've been
told that this is not required, though.

Why did you switch to 'bzr branch' at the end there?

jml



More information about the bazaar mailing list