~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-08-16 19:13:00 UTC
  • mfrom: (1934 +trunk)
  • mto: (1910.2.43 format-bumps)
  • mto: This revision was merged to the branch mainline in revision 1935.
  • Revision ID: abentley@panoramicfeedback.com-20060816191300-045772b26b975d1c
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
515
515
            self.mkdir(path, mode=mode)
516
516
        return len(self._iterate_over(relpaths, mkdir, pb, 'mkdir', expand=False))
517
517
 
518
 
    def append(self, relpath, f):
 
518
    def append(self, relpath, f, mode=None):
519
519
        """Append the text in the file-like or string object to 
520
520
        the supplied location.
521
521
 
522
522
        returns the length of f before the content was written to it.
 
523
        
 
524
        If the file does not exist, it is created with the supplied mode.
523
525
        """
524
526
        raise NotImplementedError(self.append)
525
527
 
783
785
            raise errors.UnsupportedProtocol(base, last_err)
784
786
        # This doesn't look like a protocol, consider it a local path
785
787
        new_base = urlutils.local_path_to_url(base)
786
 
        mutter('converting os path %r => url %s', base, new_base)
 
788
        # mutter('converting os path %r => url %s', base, new_base)
787
789
        return new_base
788
790
 
789
791
    # Catch any URLs which are passing Unicode rather than ASCII