~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: John Arbash Meinel
  • Date: 2006-05-27 07:55:23 UTC
  • mto: (1711.2.26 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1734.
  • Revision ID: john@arbash-meinel.com-20060527075523-8650e3f9b04ce78d
50ms is probably not worth it

Show diffs side-by-side

added added

removed removed

Lines of Context:
962
962
        return self._byid[file_id].kind
963
963
 
964
964
    def get_child(self, parent_id, filename):
965
 
        try:
966
 
            return self._byid[parent_id].children.get(filename)
967
 
        except KeyError:
968
 
            if file_id is None:
969
 
                raise BzrError("can't look up file_id None")
970
 
            else:
971
 
                raise BzrError("file_id {%s} not in inventory" % file_id)
 
965
        return self[parent_id].children.get(filename)
972
966
 
973
967
 
974
968
    def add(self, entry):