Mercurial > hg > hg-fastimport
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 70:a739b8dc8e6f | 71:5dc3ab8142d5 |
|---|---|
| 416 def copy_handler(self, filecmd): | 416 def copy_handler(self, filecmd): |
| 417 self.copies[filecmd.src_path] = filecmd.dest_path | 417 self.copies[filecmd.src_path] = filecmd.dest_path |
| 418 | 418 |
| 419 def rename_handler(self, filecmd): | 419 def rename_handler(self, filecmd): |
| 420 # copy oldname to newname and delete oldname | 420 # copy oldname to newname and delete oldname |
| 421 self.copies[filecmd.oldname] = filecmd.newname | 421 self.copies[filecmd.new_path] = filecmd.old_path |
| 422 self.files.append((filecmd.path, None)) | 422 self.modified.append((filecmd.old_path, None)) |
