[MERGE] Implement bzrlib.lock with CreateFile rather than LockFileEx on win32 (operational part)

Martin (gzlist) gzlist at googlemail.com
Fri Jun 19 11:10:45 BST 2009


2009/6/19 Alexander Belchenko <bialix at ukr.net>:
>
> Do you run existing per_lock tests? There is a lot of test failures.

I did, naturally they passed on both the boxes I tried.

Problem is on your machine, this raises:

>>> import ctypes
>>> assert ctypes.WinError(5).errno == 5

Annoyingly, I'd read about just this problem as described in the
bzrlib.osutils._is_error_enotdir docstring, but promptly forgot about
it.

Attached amended bundle with trivial fix.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock_on_create_2.bundle
Type: application/octet-stream
Size: 13461 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090619/e58ef448/attachment.obj 


More information about the bazaar mailing list