[hg-import bug] operation not supported over http

John Arbash Meinel john at arbash-meinel.com
Thu Jun 15 04:01:42 BST 2006


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

Aaron Bentley wrote:
> I'm getting an error from the hg-import plugin on non-hg branches.
> 
> $ bzr pull --remember http://michael.ellerman.id.au/bzr/plugins/shelf
> bzr: ERROR: mercurial.util.Abort: operation not supported over http
>   at /usr/local/lib/python2.4/site-packages/mercurial/httprepo.py line 71
>   in lock
> 
> It appears that the plugin breaks find-repo, which means that branches
> in shared repositories don't work (unless they're in the repo root).
> 
> Aaron


It seems like the plugin needs to trap the Abort exception. It seems
like we may be locking too strongly for 'lock_read()'. Probably
lock_read() should not call 'lock()' at all.
I don't know what guarantees hg gives for readonly operations, but since
they do support plain http get, it would seem that they support
non-locking reads.

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

iD8DBQFEkM2WJdeBCYSNAAMRAi/wAJwI+qaKRP4UNIF1Ryic1mY0knkZfwCeLJ3k
l/E2fTFjN5qnOYIrzeY0Xsg=
=HSkb
-----END PGP SIGNATURE-----




More information about the bazaar mailing list