~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Robert Collins
  • Date: 2007-08-05 05:38:15 UTC
  • mto: (2592.3.77 repository)
  • mto: This revision was merged to the branch mainline in revision 2741.
  • Revision ID: robertc@robertcollins.net-20070805053815-jeb19qdogkh5zrq5
Add mode parameter to Transport.open_file_stream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
846
846
            self.mkdir(path, mode=mode)
847
847
        return len(self._iterate_over(relpaths, mkdir, pb, 'mkdir', expand=False))
848
848
 
849
 
    def open_file_stream(self, relpath):
 
849
    def open_file_stream(self, relpath, mode=None):
850
850
        """Open a file stream at relpath.
851
851
 
852
852
        A file stream is a callback which adds data to the file. Buffering
856
856
 
857
857
        :seealso: close_file_stream.
858
858
        :param relpath: The relative path to the file.
 
859
        :param mode: The mode for the newly created file, 
 
860
                     None means just use the default
859
861
        :return: A write callback to add data to the file.
860
862
        """
861
863
        raise NotImplementedError(self.open_file_stream)