Bzrlib does not understand https+webdav even though webdav plugin is installed (works from command line)
Nicholas Allen
nick.allen at onlinehome.de
Tue Feb 24 12:01:09 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks Alexander. That fixed it ;-)
Cheers,
Nick
Alexander Belchenko wrote:
> You have to explicitly load plugins in your code.
> See bzrlib/plugin.py
>
> Nicholas Allen пишет:
> Hi,
>
> 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:
>
> try:
> parent_location = branch.get_parent()
>
> if not parent_location is None:
> parent_branch = Branch.open(parent_location)
> branch.pull(parent_branch)
> except BzrError, e:
> print >>sys.stderr, \
> 'Could not pull from parent for branch %s:
> %s' % (branch_emailer.path, e)
>
>
> What am I doing wrong?
>
> Cheers,
>
> Nick
>>
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmj4YMACgkQ1+i51gqqEGmNUQCdGHhzpL/wPqUb/QwVx91qfqxu
0tIAnRtEPU+LQLrTLsxss2iW5QnP9/6T
=l5ba
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list