bzr reconfigure --stacked-on tends to set stacked-on urls that launchapd doesn't interpret

Bug #571945 reported by Michael Hudson-Doyle
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Launchpad itself
Triaged
Low
Unassigned

Bug Description

If you attempt to stack a branch on launchpad, say ~user/project/branch, on another, say ~user/project/trunk using reconfigure, it doesn't really work.

If you do it like this:

bzr reconfigure lp:~user/project/branch --stacked-on lp:~user/project/trunk

you end up with "stacked_on_location = lp:~user/project/trunk" in branch.conf.

If instead you do:

bzr reconfigure lp:~user/project/branch --stacked-on bzr+ssh://bazaar.launchpad.net/~user/project/trunk

bzr relativizes and you end up with "stacked_on_location = ../trunk" in branch.conf.

I think the first outcome is at least a little odd, and maybe a bzr bug but Launchpad doesn't know how to interpret either of these. It probably wouldn't be very hard to teach it.

Tim Penhey (thumper)
Changed in launchpad-code:
status: New → Triaged
importance: Undecided → Medium
tags: added: branch-stacking
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Contributing my annoyance at this issue of the launchpad bazaar plugin: when using lots of local branches, it's frequent that the parent of the branch B is a local branch A rather than a remote repository, and bazaar does not (as far as I know) provide a way to refer to some arbitrary ancestor. Neither does the stacking branch detection go more than one level up (it should traverse all local repositories until it finds a remote parent or push branch, not stop at the first parent).

As a result, when using lots of local branches one *has* to explicitly provide a stacking URL, and this becomes a strong annoyance with lots of short-lived branches, because one then has to hunt his disk for the right ssh url to the branch, due to lp: urls not being correctly expanded.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 571945] Re: reconfigure --stacked-on tends to set stacked-on urls that launchapd doesn't interpret

Hi, Xavier.

I use lots of local branches that have parent relationships amongst
each other. This does sometimes cause trouble with for instance 'diff
-rsubmit:' but I'm not aware of it causing any trouble with stacking
or any requirement to manually set the stacking location. Can you
explain more, maybe with reproduction instructions?

Martin

Changed in launchpad:
importance: Medium → Low
summary: - reconfigure --stacked-on tends to set stacked-on urls that launchapd
+ bzr reconfigure --stacked-on tends to set stacked-on urls that launchapd
doesn't interpret
Martin Pool (mbp)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
tags: added: reconfigure
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.