/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-31 07:39:11 UTC
  • mfrom: (2772.2.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070831073911-5saibq43v0uvsh7r
(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()."""