diff hgsubversion/editor.py @ 497:cad864ed29de

util: make aresamefiles take one file and just be issamefile instead.
author Augie Fackler <durin42@gmail.com>
date Fri, 16 Oct 2009 19:09:53 -0400
parents 5e0dfe59d4c3
children 990e07054f29
line wrap: on
line diff
--- a/hgsubversion/editor.py
+++ b/hgsubversion/editor.py
@@ -218,7 +218,7 @@ class HgEditor(delta.Editor):
                                                      branch)
             if parentid != revlog.nullid:
                 parentctx = self.repo.changectx(parentid)
-                if util.aresamefiles(parentctx, ctx, [from_file]):
+                if util.issamefile(parentctx, ctx, from_file):
                     self.current.copies[path] = from_file
 
     @ieditor
@@ -279,7 +279,7 @@ class HgEditor(delta.Editor):
             if parentid != revlog.nullid:
                 parentctx = self.repo.changectx(parentid)
                 for k, v in copies.iteritems():
-                    if util.aresamefiles(parentctx, cp_f_ctx, [v]):
+                    if util.issamefile(parentctx, cp_f_ctx, v):
                         self.current.copies.update({k: v})
         return path