Tortoisebzr leaves locks behind
John Arbash Meinel
john at arbash-meinel.com
Tue Oct 12 15:22:42 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/12/2010 6:01 AM, Patrick van der Velde wrote:
> Hi All
>
> Has anybody noticed that TortoiseBzr seems to leave locks behind when
> it fails to handle the users request correctly? I've noticed that I
> have to use break-lock on a regular basis after using TortoiseBzr. Is
> there something I can do to make this not happen (config, etc.)? Or is
> this a bug / by design / feature / ....???
>
> Thanks
>
> Patrick
My guess is that it is a bug that TBZR isn't cleaning up after itself
properly. Code in bzrlib tends to look like:
branch.lock_*()
try:
do something
finally:
branch.unlock()
So that it will always unlock the branch whether "do something" succeeds
or fails.
People could also write this as:
branch.lock_*()
do something
branch.unlock()
In which case it only unlocks if do something succeeds without an exception.
The other possibility is if you are accessing stuff via sftp/bzr+ssh and
we can't unlock because the network communication is being closed.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAky0bzIACgkQJdeBCYSNAAPGoACfTy+rPuNwA/TsnK//gFcMAosL
JToAni5+s3l2HfQ7/C4ygwLZMLSQ/weR
=uwbw
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list