~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Ian Clatworthy
  • Date: 2007-08-23 00:12:35 UTC
  • mto: (2772.2.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2774.
  • Revision ID: ian.clatworthy@internode.on.net-20070823001235-bjza31s3c5ffdxlj
Skip path lookup for tree.get_file() when we already know the path

Show diffs side-by-side

added added

removed removed

Lines of Context:
1505
1505
        return self._repository.weave_store.get_weave(file_id,
1506
1506
                self._repository.get_transaction())
1507
1507
 
1508
 
    def get_file(self, file_id):
 
1508
    def get_file(self, file_id, path=None):
1509
1509
        return StringIO(self.get_file_text(file_id))
1510
1510
 
1511
1511
    def get_file_lines(self, file_id):