"bzr status" fails due to lock by "bzr commit"

Robert Collins robertc at robertcollins.net
Mon Jan 4 21:51:11 GMT 2010


On Mon, 2010-01-04 at 20:57 +0200, Eli Zaretskii wrote:


> Is it possible to share the lock between "commit" and "status"?  If
> so, can bzr be fixed to not cause such sharing violations on Windows?
> (I'm guessing it's a matter of using the right flags in CreateFileW
> API, but maybe it's not that simple.)  Should I submit a bug report?

No, its not safe to read that file concurrently; I created a proof of
concept change that writes single files and permits status to succeedd
while commit is working. Its mentioned in the list a while back - search
for 'dirstate'.

> Failing that, a workaround would be to have an option to tell bzr to
> create these bzr_log.* files in a temporary directory, like $TMPDIR on
> Unix or $TEMP on Windows.  Then Emacs won't run "bzr status" and won't
> trigger this error.

Can emacs be told to ignore changes to those files?

-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100105/6a228ff2/attachment.pgp 


More information about the bazaar mailing list