changeset 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 a739b8dc8e6f
children 6b716ecb1cf3
files hgfastimport/hgimport.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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))