~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-06 22:59:58 UTC
  • mfrom: (1740.2.6 bzr.checkout)
  • Revision ID: pqm@pqm.ubuntu.com-20060606225958-17ab4431da6b44f6
Speed up checkout by using existing revision text when possible

Show diffs side-by-side

added added

removed removed

Lines of Context:
845
845
        parent_id is the transaction id of the parent directory of the file.
846
846
        contents is an iterator of bytestrings, which will be used to produce
847
847
        the file.
848
 
        file_id is the inventory ID of the file, if it is to be versioned.
 
848
        :param file_id: The inventory ID of the file, if it is to be versioned.
 
849
        :param executable: Only valid when a file_id has been supplied.
849
850
        """
850
851
        trans_id = self._new_entry(name, parent_id, file_id)
 
852
        # TODO: rather than scheduling a set_executable call,
 
853
        # have create_file create the file with the right mode.
851
854
        self.create_file(contents, trans_id)
852
855
        if executable is not None:
853
856
            self.set_executability(executable, trans_id)