mercurial/patch.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 48935 2cce2fa5bcf7
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
  2641             copy = copies.pathcopies(ctx1, ctx2, match=match)
  2641             copy = copies.pathcopies(ctx1, ctx2, match=match)
  2642 
  2642 
  2643     if copysourcematch:
  2643     if copysourcematch:
  2644         # filter out copies where source side isn't inside the matcher
  2644         # filter out copies where source side isn't inside the matcher
  2645         # (copies.pathcopies() already filtered out the destination)
  2645         # (copies.pathcopies() already filtered out the destination)
  2646         copy = {
  2646         copy = {dst: src for dst, src in copy.items() if copysourcematch(src)}
  2647             dst: src
       
  2648             for dst, src in pycompat.iteritems(copy)
       
  2649             if copysourcematch(src)
       
  2650         }
       
  2651 
  2647 
  2652     modifiedset = set(modified)
  2648     modifiedset = set(modified)
  2653     addedset = set(added)
  2649     addedset = set(added)
  2654     removedset = set(removed)
  2650     removedset = set(removed)
  2655     for f in modified:
  2651     for f in modified: