/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: John Arbash Meinel
  • Date: 2009-09-24 20:09:36 UTC
  • mto: (4634.52.3 2.0)
  • mto: This revision was merged to the branch mainline in revision 4716.
  • Revision ID: john@arbash-meinel.com-20090924200936-g1iyerqko1bb6tel
Handle the case when the specific_fileids don't exist in this revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1647
1647
        other = Inventory(self.root_id)
1648
1648
        other.root.revision = self.root.revision
1649
1649
        other.revision_id = self.revision_id
1650
 
        if not interesting: # empty filter
 
1650
        if not interesting or not parent_to_children:
 
1651
            # empty filter, or filtering entrys that don't exist
 
1652
            # (if even 1 existed, then we would have populated
 
1653
            # parent_to_children with at least the tree root.)
1651
1654
            return other
1652
1655
        cache = self._fileid_to_entry_cache
1653
 
        remaining_children = collections.deque(parent_to_children[self.root_id])
 
1656
        try:
 
1657
            remaining_children = collections.deque(parent_to_children[self.root_id])
 
1658
        except:
 
1659
            import pdb; pdb.set_trace()
 
1660
            raise
1654
1661
        while remaining_children:
1655
1662
            file_id = remaining_children.popleft()
1656
1663
            ie = cache[file_id]