Tortoisebzr leaves locks behind

INADA Naoki songofacandy at gmail.com
Mon Oct 18 02:41:04 BST 2010


> 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.

TBZR does so.

Only place TBZR locks is bzrlib.wtcache:67.
lock_read() before try and unlock() on finally clause.

-- 
INADA Naoki  <songofacandy at gmail.com>



More information about the bazaar mailing list