~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2005-07-25 19:22:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050725192242-6e9bfc25f80df9d1
- new method Tree.get_file_by_path

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
    def _get_inventory(self):
68
68
        return self._inventory
 
69
    
 
70
    def get_file_by_path(self, path):
 
71
        return self.get_file(self._inventory.path2id(path))
69
72
 
70
73
    inventory = property(_get_inventory,
71
74
                         doc="Inventory of this Tree")