~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: Ian Clatworthy
  • Date: 2007-08-31 05:54:21 UTC
  • mfrom: (2743.3.6 bzr.quicker-initial-commit)
  • mto: This revision was merged to the branch mainline in revision 2774.
  • Revision ID: ian.clatworthy@internode.on.net-20070831055421-iwcem9phv1needkk
(Ian Clatworthy) Quicker initial commit - skip SHAing twice & skip path lookup as we know it

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        missing files, so is a no-op.
80
80
        """
81
81
 
82
 
    def get_file(self, file_id):
 
82
    def get_file(self, file_id, path=None):
83
83
        """See Tree.get_file."""
84
 
        return self._file_transport.get(self.id2path(file_id))
 
84
        if path is None:
 
85
            path = self.id2path(file_id)
 
86
        return self._file_transport.get(path)
85
87
 
86
88
    def get_file_sha1(self, file_id, path=None, stat_value=None):
87
89
        """See Tree.get_file_sha1()."""