/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 processors/generic_processor.py

Add deleteall support (Miklos Vajna)

Show diffs side-by-side

added added

removed removed

Lines of Context:
809
809
        self.cache_mgr._rename_path(old_path, new_path)
810
810
 
811
811
    def deleteall_handler(self, filecmd):
812
 
        raise NotImplementedError(self.deleteall_handler)
 
812
        self.debug("deleting all files (and also all directories)")
 
813
        for path, fileid in self.cache_mgr.file_ids.items():
 
814
            del self.inventory[fileid]
 
815
            self.cache_mgr._delete_path(path)
813
816
 
814
817
    def bzr_file_id_and_new(self, path):
815
818
        """Get a Bazaar file identifier and new flag for a path.