changeset 93:2ce33511de87

hgimport: Pass on deleteall_handler Fossil exports may not have parents, so just skip it for now.
author Roy Marples <roy@marples.name>
date Thu, 21 Jan 2021 20:42:10 +0000
parents efe678b023d3
children b18c5670f6c0
files hgext3rd/fastimport/hgimport.py
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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