Commits

kiilerix committed 785811f

visdiff: adjust to copies.copies refactoring in hg 2.1 0bd17a4bed88

  • Participants
  • Parent commits 082369c
  • Branches hgtk-default

Comments (0)

Files changed (1)

File tortoisehg/hgtk/visdiff.py

     mod_a, add_a, rem_a = map(set, repo.status(ctx1a.node(), n2, m)[:3])
     if ctx1b:
         mod_b, add_b, rem_b = map(set, repo.status(ctx1b.node(), n2, m)[:3])
-        cpy = copies.copies(repo, ctx1a, ctx1b, ctx1a.ancestor(ctx1b))[0]
+        cpy = copies.pathcopies(ctx1a, ctx1b)
     else:
-        cpy = copies.copies(repo, ctx1a, ctx2, repo[-1])[0]
+        cpy = copies.pathcopies(ctx1a, ctx2)
         mod_b, add_b, rem_b = set(), set(), set()
     MA = mod_a | add_a | mod_b | add_b
     MAR = MA | rem_a | rem_b