~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Martin Pool
  • Date: 2005-05-11 04:18:51 UTC
  • Revision ID: mbp@sourcefrog.net-20050511041851-a0a7480c958ef86c
- new testing command compare-trees
- change operation of TreeDelta object a bit
  to specify which renamed files also have modified text
- new TreeDelta.show() factored out
- new compare_trees similar to compare_inventories
  but handling WorkingTrees that don't have a SHA-1 
  in the inventory but can get it from cache
- new Inventory.get_file_kind

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
                raise BzrError("file_id {%s} not in inventory" % file_id)
381
381
 
382
382
 
 
383
    def get_file_kind(self, file_id):
 
384
        return self._byid[file_id].kind
 
385
 
383
386
    def get_child(self, parent_id, filename):
384
387
        return self[parent_id].children.get(filename)
385
388