Rev 2372: Remove the unused _ignore_write_lock parameter. in http://bzr.arbash-meinel.com/branches/bzr/0.15-dev/locking

John Arbash Meinel john at arbash-meinel.com
Mon Mar 19 20:46:08 GMT 2007


At http://bzr.arbash-meinel.com/branches/bzr/0.15-dev/locking

------------------------------------------------------------
revno: 2372
revision-id: john at arbash-meinel.com-20070319204546-xxywya2iuemwqdt9
parent: john at arbash-meinel.com-20070315233905-1keqs8pqeas1smq2
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: locking
timestamp: Mon 2007-03-19 15:45:46 -0500
message:
  Remove the unused _ignore_write_lock parameter.
modified:
  bzrlib/lock.py                 lock.py-20050527050856-ec090bb51bc03349
-------------- next part --------------
=== modified file 'bzrlib/lock.py'
--- a/bzrlib/lock.py	2007-03-15 23:24:59 +0000
+++ b/bzrlib/lock.py	2007-03-19 20:45:46 +0000
@@ -155,10 +155,10 @@
 
         _open_locks = {}
 
-        def __init__(self, filename, _ignore_write_lock=False):
+        def __init__(self, filename):
             super(_fcntl_ReadLock, self).__init__()
             self.filename = osutils.realpath(filename)
-            if not _ignore_write_lock and self.filename in _fcntl_WriteLock._open_locks:
+            if self.filename in _fcntl_WriteLock._open_locks:
                 raise errors.LockContention(self.filename)
             _fcntl_ReadLock._open_locks.setdefault(self.filename, 0)
             _fcntl_ReadLock._open_locks[self.filename] += 1



More information about the bazaar-commits mailing list