mercurial/merge.py
changeset 4355 10edaed7f909
parent 4303 09c5f734ff6a
parent 4350 8aee687f0214
child 4404 47371e1c1db4
--- a/mercurial/merge.py	Mon Apr 16 09:52:37 2007 -0500
+++ b/mercurial/merge.py	Mon Apr 16 12:37:30 2007 -0500
@@ -105,10 +105,15 @@
     def findold(fctx):
         "find files that path was copied from, back to linkrev limit"
         old = {}
+        seen = {}
         orig = fctx.path()
         visit = [fctx]
         while visit:
             fc = visit.pop()
+            s = str(fc)
+            if s in seen:
+                continue
+            seen[s] = 1
             if fc.path() != orig and fc.path() not in old:
                 old[fc.path()] = 1
             if fc.rev() < limit: