Merge lp:~maxb/bzr/deref-in-set-stacking into lp:bzr/2.3
Status: | Work in progress |
---|---|
Proposed branch: | lp:~maxb/bzr/deref-in-set-stacking |
Merge into: | lp:bzr/2.3 |
Prerequisite: | lp:~maxb/bzr/normalize-lp |
Diff against target: |
36 lines (+8/-0) 2 files modified
bzrlib/builtins.py (+3/-0) bzrlib/reconfigure.py (+5/-0) |
To merge this branch: | bzr merge lp:~maxb/bzr/deref-in-set-stacking |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
bzr-core | Pending | ||
Review via email: mp+61730@code.launchpad.net |
Description of the change
This branch adds directory service dereferencing of the URLs passed to --stacked-on=...
One aim of this was in the hope of making --stacked-on=lp... work. It doesn't yet - ironically it would work if we still resolved lp: via XMLRPC - but now that we use the /+branch/... syntax to trigger server side lookup, we run into the problem that Launchpad does not *currently* allow /+branch/ for stacking locations. I hope to fix this in Launchpad.
Another benefit is that if users have custom plugins implementing shortcut URLs, this will ensure that we do not leak these custom shortcuts into the branch stacking location, potentially breaking things for users without the same set of custom plugins.
Unmerged revisions
- 5651. By Max Bowsher
-
Dereference via directory service the argument to --stacked-on (push &
reconfigure) so that stacked-on locations are not dependent on the directory
service plugins installed in a particular instance of Bazaar.Unfortunately this does not _yet_ let us use lp: URLs in --stacked-on, as
Launchpad currently does not consider /+branch/... to be a valid stacking
location. - 5650. By Max Bowsher
-
Fix bzrlib.
urlutils. normalize_ url when processing URLs with a scheme, but no
slash in the path - before this, lp:bzr was 'normalized' to lp:bzrlp:bzr (sic).
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/20/2011 12:06 PM, Max Bowsher wrote: /code.launchpad .net/~maxb/ bzr/deref- in-set- stacking/ +merge/ 61730
> Max Bowsher has proposed merging lp:~maxb/bzr/deref-in-set-stacking into lp:bzr/2.3 with lp:~maxb/bzr/normalize-lp as a prerequisite.
>
> Requested reviews:
> bzr-core (bzr-core)
>
> For more details, see:
> https:/
>
> This branch adds directory service dereferencing of the URLs passed to --stacked-on=...
>
> One aim of this was in the hope of making --stacked-on=lp... work. It doesn't yet - ironically it would work if we still resolved lp: via XMLRPC - but now that we use the /+branch/... syntax to trigger server side lookup, we run into the problem that Launchpad does not *currently* allow /+branch/ for stacking locations. I hope to fix this in Launchpad.
>
> Another benefit is that if users have custom plugins implementing shortcut URLs, this will ensure that we do not leak these custom shortcuts into the branch stacking location, potentially breaking things for users without the same set of custom plugins.
I don't think this is appropriate for 2.3. Or at least, we should land
it in 2.4 first, and then make sure there isn't extra fallout.
What if, instead of using directory_ service. directories, we just used
normalized_url = get_transport( stacked_ on_url) .base
transport was also meant as a URL service, so maybe that would work for
what we need here.
Also, XMLRPC now returns +branch/foo style URLs as well. So it still
wouldn't work.
AFAIK there isn't a way to expand a lp:foo to ~user/bar/baz anymore... :(
Maybe via code.launchpad.net
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk3 WSQQACgkQJdeBCY SNAAPEZACgvqt6y uOi8kqQhpEmNwVD 76Ys 4pRDOHI6xOn6Sh6 +P6YYL5T
/dQAoMe0/
=XBoM
-----END PGP SIGNATURE-----