Hang at commit time when using sftp or bzr+ssh
Aaron Bentley
aaron at aaronbentley.com
Fri Dec 9 17:11:56 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11-12-09 11:29 AM, Stephen AuYeung wrote:
> The lock was acquired and released within the bzr operation like
> commit, not by the caller. How do I override that and make the lock
> long lasting?
Take a lock before calling the bzr operation. Our locks can be
acquired and released multiple times, as long as you use the same
object instance. We use a counter to ensure the actual underlying
lock is only released when there have been as many unlock operations
as lock operations. So the actual filesystem lock will only be
released when your code unlocks it.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk7iQVwACgkQ0F+nu1YWqI0cLACfbwdB5TZulII4ww9FlqrCV4JX
JEsAn0wx9Yx4qM/nZulOE36Yq9laUgtt
=rz8x
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list