~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

  • Committer: Martin Pool
  • Date: 2011-06-14 01:43:10 UTC
  • mto: This revision was merged to the branch mainline in revision 6002.
  • Revision ID: mbp@canonical.com-20110614014310-g5ww9c5gieo2cg5k
test_fifo_cache shouldn't have a knownfailure for something that's impossible

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
            finally:
204
204
                self._lock_mode = self._lock_count = None
205
205
 
 
206
    @property
 
207
    def _lock_count(self):
 
208
        return self._lock_count
 
209
 
206
210
    def is_locked(self):
207
211
        """Return true if this LockableFiles group is locked"""
208
212
        return self._lock_count >= 1