Can I force bzr to use http for lp: urls?

Asked by Andrey Bondarenko

I'm behind a proxy http/https/ftp only (no socks). I can access urls like https://code.launchpad.net/*, but trying something like lp:ubuntu/package leads to a error. Bzr either hang for a few minutes network timeout or reports no route to host.

I don't like typing http://code.launchpad.net/ every time. And I'd like to configure bzr so, that it uses http requests for read only operations with lp: urls, but I haven't found any documentation about how lp: urls are resolved and how to alter its behavior. Is there a way to do this?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
John A Meinel
Solved:
Last query:
Last reply:
Revision history for this message
Best John A Meinel (jameinel) said :
#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/8/2011 10:44 AM, Andrey Bondarenko wrote:
> New question #152075 on Bazaar:
> https://answers.launchpad.net/bzr/+question/152075
>
> I'm behind a proxy http/https/ftp only (no socks). I can access urls like https://code.launchpad.net/*, but trying something like lp:ubuntu/package leads to a error. Bzr either hang for a few minutes network timeout or reports no route to host.
>
> I don't like typing http://code.launchpad.net/ every time. And I'd like to configure bzr so, that it uses http requests for read only operations with lp: urls, but I haven't found any documentation about how lp: urls are resolved and how to alter its behavior. Is there a way to do this?
>

bzr 2.4 (beta2 will be out soon) has changed it to resolve things locally.

https://bugs.launchpad.net/bzr/+bug/397739

We are considering backporting it to the 2.3 series, but wanted to give
it some real-world testing first, since it involves interaction with
another system.

There are also older bugs like:
https://bugs.launchpad.net/bzr/+bug/186920

Depending on what version of bzr you are using.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2e0coACgkQJdeBCYSNAAOA7ACeKYz3DuUqUNj1M606Nurk+/mc
decAnRwMfTWrrMjeF00ykXbv/ote72uV
=776Z
-----END PGP SIGNATURE-----

Revision history for this message
Andrey Bondarenko (abone) said :
#2

Thank you for answer. I'll check provided bug links.

Also I've found a partial workaround for my situation. There is a custom-url-schemes plug-in documented here http://doc.bazaar.canonical.com/plugins/en/custom-url-schemes-plugin.html. It isn't available in Maverick out of the box, but installs pretty easy.

Unfortunately, it does not work in for some launchpad locations:

$ bzr custom-url-scheme-add htlp https://code.launchpad.net/

$ bzr info htlp:procps
Standalone branch (format: pack-0.92)
Location:
  branch root: http://bazaar.launchpad.net/~vcs-imports/procps/main/

$ bzr info htlp:ubuntu/procps
bzr: ERROR: Not a branch: "https://code.launchpad.net/ubuntu/procps/".

Maybe it is not bzr problem. Can't check if lp:ubuntu/procps works at all.

Anyway it's better then nothing and is available right now.

Revision history for this message
Andrey Bondarenko (abone) said :
#3

Thanks John A Meinel, that solved my question.