~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.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:
242
242
        :raises MismatchedToken: if the specified token doesn't match the token
243
243
            of the existing lock.
244
244
 
 
245
        A token should be passed in if you know that you have locked the object
 
246
        some other way, and need to synchronise this object's state with that
 
247
        fact.
 
248
 
245
249
        XXX: this docstring is duplicated in many places, e.g. lockable_files.py
246
250
        """
247
251
        return self.control_files.lock_write(token=token)