hgext/convert/hg.py
changeset 5280 11e1e574da02
parent 5279 2dbd750b3ddd
child 5352 cc34be74eeec
--- a/hgext/convert/hg.py	Sat Sep 01 02:49:18 2007 -0300
+++ b/hgext/convert/hg.py	Sat Sep 01 02:49:18 2007 -0300
@@ -187,12 +187,11 @@
         m, a, r = self.repo.status(ctx.parents()[0].node(), ctx.node())[:3]
         changes = [(name, rev) for name in m + a + r]
         changes.sort()
-        return (changes, self.getcopies(ctx))
+        return (changes, self.getcopies(ctx, m + a))
 
-    def getcopies(self, ctx):
-        added = self.repo.status(ctx.parents()[0].node(), ctx.node())[1]
+    def getcopies(self, ctx, files):
         copies = {}
-        for name in added:
+        for name in files:
             try:
                 copies[name] = ctx.filectx(name).renamed()[0]
             except TypeError: