[BUG] bzr pull in checkout

John Arbash Meinel john at arbash-meinel.com
Sat Nov 10 11:50:31 GMT 2007


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

I have a checkout of a local branch, and pull from a remote host. And it gave me:
Using saved location: http://panoramicfeedback.com/opensource/bzr/bzrtools
http://panoramicfeedback.com/opensource/bzr/bzrtools/ is redirected to
http://panoramicfeedback.com/opensource/bzr/repo/plugins/bzrtools/
bzr: ERROR: Invalid url supplied to transport: "Host empty in:
/srv/bzr/public/mirrors/plugins/bzrtools/mainline/"

It seems that the bug is in Transport._reuse_for()
it is calling ConnectedTransport._split_url(), which was recently modified to
give an error when there is no Host.

Which does make sense for most callers of _split_url, but _reuse_for() should
catch it and just recognize that it cannot be reused.

To simulate it manually, you can just do:

from bzrlib.transport import get_transport
t = get_transport('http://bazaar-vcs.org/bzr/bzr.dev')
t._reuse_for('/srv/test')

  affects bzr
  importance medium
  status triaged

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

iD8DBQFHNZsGJdeBCYSNAAMRAnXPAKCZMVXZJOuqPuWYKBsSD60BCOS55wCcDRKF
Zki5dgWrX5tCfvRWg43ifu8=
=ZfJE
-----END PGP SIGNATURE-----



More information about the bazaar mailing list