/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/nosmart.py

  • Committer: Robert Collins
  • Date: 2010-05-06 23:41:35 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506234135-yivbzczw1sejxnxc
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)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
to never have a smart medium.
22
22
"""
23
23
 
24
 
from __future__ import absolute_import
25
 
 
26
 
from .. import errors
27
 
from ..transport import decorator
 
24
from bzrlib import errors
 
25
from bzrlib.transport import decorator
28
26
 
29
27
 
30
28
class NoSmartTransportDecorator(decorator.TransportDecorator):
40
38
 
41
39
def get_test_permutations():
42
40
    """Return the permutations to be used in testing."""
43
 
    from ..tests import test_server
 
41
    from bzrlib.tests import test_server
44
42
    return [(NoSmartTransportDecorator, test_server.NoSmartTransportServer)]
 
43