~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

Rename is_transport_locked() to get_physical_lock_status() as the
transport is abstracted away from. Prefixed with get_ as it might take
some time to return.

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
            self._lock.unlock()
249
249
            self._lock_mode = self._lock_count = None
250
250
 
251
 
    def is_transport_locked(self):
252
 
        """Return true if a lock exists on the transport."""
253
 
        l = LockDir(self._transport, self.lock_name)
254
 
        return l.peek() is not None
255
 
 
256
251
    def is_locked(self):
257
252
        """Return true if this LockableFiles group is locked"""
258
253
        return self._lock_count >= 1
259
254
 
 
255
    def get_physical_lock_status(self):
 
256
        """Return true if a lock is held on the transport."""
 
257
        l = LockDir(self._transport, self.lock_name)
 
258
        return l.peek() is not None
 
259
 
260
260
    def get_transaction(self):
261
261
        """Return the current active transaction.
262
262