[Pkg-bazaar-commits] ./bzr/unstable r977: - new method Tree.get_file_by_path
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:13:34 UTC 2009
------------------------------------------------------------
revno: 977
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-07-25 16:22:43 -0300
message:
- new method Tree.get_file_by_path
modified:
bzrlib/tree.py
-------------- next part --------------
=== modified file 'bzrlib/tree.py'
--- a/bzrlib/tree.py 2005-07-11 07:33:45 +0000
+++ b/bzrlib/tree.py 2005-07-25 19:22:43 +0000
@@ -66,6 +66,9 @@
def _get_inventory(self):
return self._inventory
+
+ def get_file_by_path(self, path):
+ return self.get_file(self._inventory.path2id(path))
inventory = property(_get_inventory,
doc="Inventory of this Tree")
More information about the Pkg-bazaar-commits
mailing list