Rev 5203: Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now in http://bazaar.launchpad.net/~lifeless/bzr/lock_return

Robert Collins robertc at robertcollins.net
Fri May 7 00:41:52 BST 2010


At http://bazaar.launchpad.net/~lifeless/bzr/lock_return

------------------------------------------------------------
revno: 5203
revision-id: robertc at robertcollins.net-20100506234135-yivbzczw1sejxnxc
parent: robertc at robertcollins.net-20100506110810-h3j07fh5gmw54s25
committer: Robert Collins <robertc at robertcollins.net>
branch nick: lock_return
timestamp: Fri 2010-05-07 11:41:35 +1200
message:
  Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
  expected to return an object which can be used to unlock them. This reduces
  duplicate code when using cleanups. The previous 'tokens's returned by
  ``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
  on the result of the lock_write. ``repository.RepositoryWriteLockResult``
  and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
  
  ``log._get_info_for_log_files`` now takes an add_cleanup callable.
  (Robert Collins)

Diff too large for email (1605 lines, the limit is 1000).



More information about the bazaar-commits mailing list