/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/transform.py

  • Committer: Aaron Bentley
  • Date: 2008-07-24 16:28:30 UTC
  • mto: (3363.14.4 intertree)
  • mto: This revision was merged to the branch mainline in revision 3715.
  • Revision ID: aaron@aaronbentley.com-20080724162830-a8ibxvc75czvqffn
Implement tree.iter_children to instead of adjusting InventoryEntry handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
1533
1533
        children.update(self._by_parent.get(trans_id, []))
1534
1534
        return children
1535
1535
 
 
1536
    def iter_children(self, file_id):
 
1537
        trans_id = self._transform.trans_id_file_id(file_id)
 
1538
        for child_trans_id in self._all_children(trans_id):
 
1539
            yield self._transform.final_file_id(child_trans_id)
 
1540
 
1536
1541
    def _make_inv_entries(self, ordered_entries, specific_file_ids):
1537
1542
        for trans_id, parent_file_id in ordered_entries:
1538
1543
            file_id = self._transform.final_file_id(trans_id)