Bzrlib does not understand https+webdav even though webdav plugin is installed (works from command line)
nick.allen at onlinehome.de
Tue Feb 24 12:01:09 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Thanks Alexander. That fixed it ;-)
Alexander Belchenko wrote:
> You have to explicitly load plugins in your code.
> See bzrlib/plugin.py
> Nicholas Allen пишет:
> I'm trying to pull from a branch's parent using bzrlib API. The parent
> location is using https+webdav. When I run this code I get an exception
> wiht the message:
> Unsupported protocol for url "https+webdav://.....
> If I branch from the command line using the exact same address there is
> no problem. bzr plugins shows that the webdav plugin is installed.
> My python code looks like this:
> parent_location = branch.get_parent()
> if not parent_location is None:
> parent_branch = Branch.open(parent_location)
> except BzrError, e:
> print >>sys.stderr, \
> 'Could not pull from parent for branch %s:
> %s' % (branch_emailer.path, e)
> What am I doing wrong?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar