How to open a branch with a launchpad url using bzrlib

Asked by Javier Collado

I'm trying to use bzrlib to open a remote branch using a launchpad url. However, it looks like before being able to do that, the url has to be mapped to a bzr+ssh one.

For example, if I try:'lp:bzr')
I get a NotBranchError exception.

But if I try:'bzr+ssh://')
The branch is opened correctly.

I've looked into the documentation here:
but haven't found any example with a launchpad url.

Please let me know how to open a branch with such an url. Thanks.

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Solved by:
Javier Collado
Last query:
Last reply:
Revision history for this message
Javier Collado (javier.collado) said :

I've just found that I need to call bzrlib.plugin.load_plugins() before trying to open the branch so that the launchpad plugin can take over the responsibility to map the url correctly.