~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

Testing that repository.{dont_,}leave_lock_in_place raises NotImplementedError if lock_write returns None.

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
    def leave_lock_in_place(self):
258
258
        """Tell this repository not to release the physical lock when this
259
259
        object is unlocked.
 
260
        
 
261
        If lock_write doesn't return a token, then this method is not supported.
260
262
        """
261
263
        self.control_files.leave_in_place()
262
264
 
263
265
    def dont_leave_lock_in_place(self):
264
266
        """Tell this repository to release the physical lock when this
265
267
        object is unlocked, even if it didn't originally acquire it.
 
268
 
 
269
        If lock_write doesn't return a token, then this method is not supported.
266
270
        """
267
271
        self.control_files.dont_leave_in_place()
268
272