Rev 2575: rename _lock_core to _attempt_lock in http://sourcefrog.net/bzr/dlock
Martin Pool
mbp at sourcefrog.net
Wed Jul 4 10:10:24 BST 2007
At http://sourcefrog.net/bzr/dlock
------------------------------------------------------------
revno: 2575
revision-id: mbp at sourcefrog.net-20070704091023-7ngb0ux89dnxbppi
parent: mbp at sourcefrog.net-20070704090420-xyi51gwbmcoxdbjr
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: dlock
timestamp: Wed 2007-07-04 19:10:23 +1000
message:
rename _lock_core to _attempt_lock
modified:
bzrlib/lockdir.py lockdir.py-20060220222025-98258adf27fbdda3
=== modified file 'bzrlib/lockdir.py'
--- a/bzrlib/lockdir.py 2007-07-03 09:24:45 +0000
+++ b/bzrlib/lockdir.py 2007-07-04 09:10:23 +0000
@@ -197,7 +197,7 @@
self._trace("create lock directory")
self.transport.mkdir(self.path, mode=mode)
- def _lock_core(self):
+ def _attempt_lock(self):
"""Make the pending directory and attempt to rename into place.
If the rename succeeds, we read back the info file to check that we
@@ -448,7 +448,7 @@
raise LockContention(self)
if self.transport.is_readonly():
raise UnlockableTransport(self.transport)
- return self._lock_core()
+ return self._attempt_lock()
def wait_lock(self, timeout=None, poll=None, max_attempts=None):
"""Wait a certain period for a lock.
More information about the bazaar-commits
mailing list