1. Ralph Meijer
  2. hg-fastimport-patches

Commits

Ralph Meijer  committed bc2e480

Add patch to fix rename handling by correcting the used attribute names.

  • Participants
  • Branches default

Comments (0)

Files changed (3)

File .hgignore

View file
+^\.hg
+^\.mq
+syntax: glob
+status
+guards

File renames.patch

View file
+# HG changeset patch
+# Parent 280eb5061a5eae8cc675ec2d83ff9bd552558731
+diff --git a/hgfastimport/hgimport.py b/hgfastimport/hgimport.py
+--- a/hgfastimport/hgimport.py
++++ b/hgfastimport/hgimport.py
+@@ -431,5 +431,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))

File series

View file
+renames.patch