~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.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:
210
210
    def _get_inventory(self):
211
211
        return self._inventory
212
212
    
213
 
    def get_file(self, file_id):
214
 
        """Return a file object for the file file_id in the tree."""
 
213
    def get_file(self, file_id, path=None):
 
214
        """Return a file object for the file file_id in the tree.
 
215
        
 
216
        If both file_id and path are defined, it is implementation defined as
 
217
        to which one is used.
 
218
        """
215
219
        raise NotImplementedError(self.get_file)
216
220
 
217
221
    def get_file_mtime(self, file_id, path=None):