hgext/convert/__init__.py
changeset 5121 ef338e34a906
parent 5018 c7623d2b2a66
child 5127 39b6eaee6fd7
--- a/hgext/convert/__init__.py	Sun Aug 05 11:30:52 2007 -0700
+++ b/hgext/convert/__init__.py	Sun Aug 05 12:03:27 2007 -0700
@@ -193,7 +193,8 @@
         do_copies = hasattr(self.dest, 'copyfile')
         filenames = []
 
-        for f, v in self.source.getchanges(rev):
+        files, copies = self.source.getchanges(rev)
+        for f, v in files:
             newf = self.mapfile(f)
             if not newf:
                 continue
@@ -206,8 +207,8 @@
                 e = self.source.getmode(f, v)
                 self.dest.putfile(newf, e, data)
                 if do_copies:
-                    if f in commit.copies:
-                        copyf = self.mapfile(commit.copies[f])
+                    if f in copies:
+                        copyf = self.mapfile(copies[f])
                         if copyf:
                             # Merely marks that a copy happened.
                             self.dest.copyfile(copyf, newf)