[BUG] Hidden bug in `bzr info` when dirstate tree is write-locked

John Arbash Meinel john at arbash-meinel.com
Tue Apr 17 22:41:43 BST 2007


Alexander Belchenko wrote:
> (OS locks drive me crazy)
> 
> There is the hidden bug in `info` command and in
> blackbox.test_info.TestInfo.test_info_locking test as well.
> This test try to check if output of `bzr info` is valid
> for all combination of locked repo/breanch/tree.
> But in this test `bzr info` is not launched as subprocess.
> It's important. And this fact has one BIG side effect,
> that hide real problem with OS locks.
> 
> On Linux this test does not fail, so I assume
> on Linux you can get write lock and then get read lock
> from the same process (it's important!).

Hence what one of my patches was working on (making in-process locks
properly exclusive).

John
=:->



More information about the bazaar mailing list