~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Robert Collins
  • Date: 2006-04-19 23:32:08 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: robertc@robertcollins.net-20060419233208-2ed6906796994316
Make knit the default format.
Adjust affect tests to either have knit specific values or to be more generic,
as appropriate.
Disable all SFTP prefetching for known paramikos - direct readv support is now
a TODO.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        except (IOError, OSError),e:
137
137
            self._translate_error(e, path)
138
138
 
139
 
    def append(self, relpath, f):
 
139
    def append(self, relpath, f, mode=None):
140
140
        """Append the text in the file-like object into the final
141
141
        location.
142
142
        """
143
143
        try:
144
144
            fp = open(self.abspath(relpath), 'ab')
 
145
            if mode is not None:
 
146
                os.chmod(self.abspath(relpath), mode)
145
147
        except (IOError, OSError),e:
146
148
            self._translate_error(e, relpath)
147
149
        # win32 workaround (tell on an unwritten file returns 0)