diff hgfastimport/hgimport.py @ 71:5dc3ab8142d5

Add patch to fix rename handling by correcting the used attribute names.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 17 May 2012 23:55:40 +0200
parents 47bc97e1c46f
children a99e5c6c8e1c
line wrap: on
line diff
--- a/hgfastimport/hgimport.py	Sun Jul 26 18:07:59 2015 -0400
+++ b/hgfastimport/hgimport.py	Thu May 17 23:55:40 2012 +0200
@@ -418,5 +418,5 @@
 
     def rename_handler(self, filecmd):
         # copy oldname to newname and delete oldname
-        self.copies[filecmd.oldname] = filecmd.newname
-        self.files.append((filecmd.path, None))
+        self.copies[filecmd.new_path] = filecmd.old_path
+        self.modified.append((filecmd.old_path, None))