~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/trace.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-05 03:30:30 UTC
  • mfrom: (4063.2.1 more-trace)
  • Revision ID: pqm@pqm.ubuntu.com-20090305033030-065loicjpjmivxq1
(robertc) Add put_bytes_non_atomic and rmdir to the trace+ transport
        decorator. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        self._trace(('put_bytes', relpath, len(bytes), mode))
105
105
        return self._decorated.put_bytes(relpath, bytes, mode)
106
106
 
 
107
    def put_bytes_non_atomic(self, relpath, bytes, mode=None,
 
108
        create_parent_dir=False, dir_mode=None):
 
109
        """See Transport.put_bytes_non_atomic."""
 
110
        self._trace(('put_bytes_non_atomic', relpath, len(bytes), mode,
 
111
            create_parent_dir, dir_mode))
 
112
        return self._decorated.put_bytes_non_atomic(relpath, bytes, mode=mode,
 
113
            create_parent_dir=create_parent_dir, dir_mode=dir_mode)
 
114
 
107
115
    def listable(self):
108
116
        """See Transport.listable."""
109
117
        return self._decorated.listable()
134
142
 
135
143
    def rmdir(self, relpath):
136
144
        """See Transport.rmdir."""
 
145
        self._trace(('rmdir', relpath))
137
146
        return self._decorated.rmdir(relpath)
138
147
 
139
148
    def stat(self, relpath):