~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Robert Collins
  • Date: 2006-09-07 08:17:44 UTC
  • mto: (1991.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1992.
  • Revision ID: robertc@robertcollins.net-20060907081744-e0a9ba051e0194bd
Bugfix the unversion implementation - it had a faulty inventory.remove included in it, which the initial test was not rigourous enough to detect.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1227
1227
            if ie.kind == 'directory':
1228
1228
                to_find_delete.extend(ie.children.values())
1229
1229
        for file_id in reversed(to_delete):
 
1230
            ie = self[file_id]
1230
1231
            del self._byid[file_id]
 
1232
            if ie.parent_id is not None:
 
1233
                del self[ie.parent_id].children[ie.name]
1231
1234
 
1232
1235
    def rename(self, file_id, new_parent_id, new_name):
1233
1236
        """Move a file within the inventory.