~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

Removed lock-related log spam [recommit]

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        self.put(path, StringIO(a_string.encode('utf-8')))
170
170
 
171
171
    def lock_write(self):
172
 
        mutter("lock write: %s (%s)", self, self._lock_count)
 
172
        # mutter("lock write: %s (%s)", self, self._lock_count)
173
173
        # TODO: Upgrade locking to support using a Transport,
174
174
        # and potentially a remote locking protocol
175
175
        if self._lock_mode:
185
185
            self._set_transaction(transactions.PassThroughTransaction())
186
186
 
187
187
    def lock_read(self):
188
 
        mutter("lock read: %s (%s)", self, self._lock_count)
 
188
        # mutter("lock read: %s (%s)", self, self._lock_count)
189
189
        if self._lock_mode:
190
190
            assert self._lock_mode in ('r', 'w'), \
191
191
                   "invalid lock mode %r" % self._lock_mode
200
200
            self.get_transaction().set_cache_size(5000)
201
201
                        
202
202
    def unlock(self):
203
 
        mutter("unlock: %s (%s)", self, self._lock_count)
 
203
        # mutter("unlock: %s (%s)", self, self._lock_count)
204
204
        if not self._lock_mode:
205
205
            raise LockError('branch %r is not locked' % (self))
206
206