~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

  • Committer: Andrew Bennetts
  • Date: 2007-04-13 00:56:08 UTC
  • mto: (2018.18.11 hpss-faster-copy)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20070413005608-jkzcnpbnftissj97
Add a brief explanation of what tokens are used for to lock_write docstrings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
            instance doesn't support using token locks.
241
241
        :raises MismatchedToken: if the specified token doesn't match the token
242
242
            of the existing lock.
 
243
 
 
244
        A token should be passed in if you know that you have locked the object
 
245
        some other way, and need to synchronise this object's state with that
 
246
        fact.
243
247
        """
244
248
        # mutter("lock write: %s (%s)", self, self._lock_count)
245
249
        # TODO: Upgrade locking to support using a Transport,