[MERGE] Cleanup and test Lock objects

Alexander Belchenko bialix at ukr.net
Wed Mar 14 00:37:29 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel пишет:
> The attached patch cleans up the bzrlib/lock.py file a bit, and adds
> direct test for our Lock support.
> 
> I still have more to do to make locks properly exclusive on Linux. But
> because that is a behavior change, I wanted to submit this first.
> 
> This also implements Windows locks using ctypes if pywin32 is not
> available. It turns out that msvcrt locks don't support creating a
> shared lock, so we can no longer use them.

Oh, yeah! ctypes is great choice.

> Which means that we now have a strict dependency on either pywin32 or
> ctypes for Windows. I don't think this is terrible, though, because
> we've had a soft one for a long time. And as I understand it, Alexander
> has been shipping a installer with them for a long time.

As I say before many times, ctypes is the part of standard library
in Python 2.5, and this is main reason why I switch to 2.5 for
bzr development -- it reduce our dependencies very smoothly.

[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF90PJzYr338mxwCURAhDfAKCTEUoXIPnrxtkpP0sLLxKbZukaoACfbR59
0ZDphk9n6rW6HhecYVwWFm8=
=uFNW
-----END PGP SIGNATURE-----



More information about the bazaar mailing list