/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/trace.py

  • Committer: Robert Collins
  • Date: 2007-10-04 04:59:43 UTC
  • mto: This revision was merged to the branch mainline in revision 2885.
  • Revision ID: robertc@robertcollins.net-20071004045943-1wxlrsr37yppwp64
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Implementation of Transport that traces transport operations.
18
18
 
19
 
This does not change the transport behaviour at allmerely records every call
 
19
This does not change the transport behaviour at all, merely records every call
20
20
and then delegates it.
21
21
"""
22
22
 
29
29
    Calls that potentially perform IO are logged to self._activity. The
30
30
    _activity attribute is shared as the transport is cloned, but not if a new
31
31
    transport is created without cloning.
 
32
 
 
33
    Not all operations are logged at this point, if you need an unlogged
 
34
    operation please add a test to the tests of this transport, for the logging
 
35
    of the operation you want logged.
 
36
 
 
37
    Another future enhancement would be to log to bzrlib.trace.mutter when
 
38
    trace+ is used from the command line (or perhaps as well/instead use
 
39
    -Dtransport), to make tracing operations of the entire program easily.
32
40
    """
33
41
 
34
42
    def __init__(self, url, _decorated=None, _from_transport=None):
150
158
 
151
159
 
152
160
def get_test_permutations():
153
 
    """Return the permutations to be used in testing.
154
 
    
155
 
    The Decorator class is not directly usable, and testing it would not have
156
 
    any benefit - its the concrete classes which need to be tested.
157
 
    """
 
161
    """Return the permutations to be used in testing."""
158
162
    return [(TransportTraceDecorator, TraceServer)]