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

  • Committer: Robert Collins
  • Date: 2006-06-09 11:05:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: robertc@robertcollins.net-20060609110514-f384a18e6be3b4fa
Tune the time to build our kernel_like tree : make LocalTransport.put faster, AtomicFile faster, LocalTransport.append faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
437
437
            self.mkdir(path, mode=mode)
438
438
        return len(self._iterate_over(relpaths, mkdir, pb, 'mkdir', expand=False))
439
439
 
440
 
    def append(self, relpath, f):
 
440
    def append(self, relpath, f, mode=None):
441
441
        """Append the text in the file-like or string object to 
442
442
        the supplied location.
443
443
 
444
444
        returns the length of f before the content was written to it.
 
445
        
 
446
        If the file does not exist, it is created with the supplied mode.
445
447
        """
446
448
        raise NotImplementedError(self.append)
447
449