# HG changeset patch # User Roy Marples # Date 1611261730 0 # Node ID 2ce33511de87e99de9ac7aee4addad4ca1c3ec04 # Parent efe678b023d3c8f8e8d3aad98ffc0cabd083bd24 hgimport: Pass on deleteall_handler Fossil exports may not have parents, so just skip it for now. diff -r efe678b023d3 -r 2ce33511de87 hgext3rd/fastimport/hgimport.py --- a/hgext3rd/fastimport/hgimport.py Wed Jan 20 21:53:47 2021 +0000 +++ b/hgext3rd/fastimport/hgimport.py Thu Jan 21 20:42:10 2021 +0000 @@ -401,6 +401,15 @@ # number of inline files seen in this commit self.inlinecount = 0 + def copy_handler(self, filecmd): + self.copies[filecmd.src_path] = filecmd.dest_path + + def delete_handler(self, filecmd): + self.modified.append((filecmd.path, None)) + + def deleteall_handler(self, filecmd): + pass # Fossil fastexport will hit this with no parents + def modify_handler(self, filecmd): if filecmd.dataref: blobid = filecmd.dataref # blobid is the mark of the blob @@ -424,12 +433,6 @@ self.mode[filecmd.path] = mode - def delete_handler(self, filecmd): - self.modified.append((filecmd.path, None)) - - def copy_handler(self, filecmd): - self.copies[filecmd.src_path] = filecmd.dest_path - def rename_handler(self, filecmd): # copy oldname to newname and delete oldname self.copies[filecmd.new_path] = filecmd.old_path