/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: Robert Collins
  • Date: 2006-09-07 22:28:25 UTC
  • mto: (1991.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1992.
  • Revision ID: robertc@robertcollins.net-20060907222825-b2a11f240a09a474
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1217
1217
    def has_id(self, file_id):
1218
1218
        return (file_id in self._byid)
1219
1219
 
1220
 
    def remove(self, file_id):
1221
 
        """Remove file_id, and children, from the inventory."""
 
1220
    def remove_recursive_id(self, file_id):
 
1221
        """Remove file_id, and children, from the inventory.
 
1222
        
 
1223
        :param file_id: A file_id to remove.
 
1224
        """
1222
1225
        to_find_delete = [self._byid[file_id]]
1223
1226
        to_delete = []
1224
 
        while len(to_find_delete):
 
1227
        while to_find_delete:
1225
1228
            ie = to_find_delete.pop()
1226
1229
            to_delete.append(ie.file_id)
1227
1230
            if ie.kind == 'directory':