mercurial/similar.py
changeset 11085 0c8646292ca4
parent 11060 e6df01776e08
child 16683 525fdb738975
equal deleted inserted replaced
11084:4a8d4179362b 11085:0c8646292ca4
    89     removedfiles = set([parentctx[fp] for fp in removed
    89     removedfiles = set([parentctx[fp] for fp in removed
    90             if fp in parentctx and parentctx[fp].size() > 0])
    90             if fp in parentctx and parentctx[fp].size() > 0])
    91 
    91 
    92     # Find exact matches.
    92     # Find exact matches.
    93     for (a, b) in _findexactmatches(repo,
    93     for (a, b) in _findexactmatches(repo,
    94             sorted(addedfiles),sorted( removedfiles)):
    94             sorted(addedfiles), sorted(removedfiles)):
    95         addedfiles.remove(b)
    95         addedfiles.remove(b)
    96         yield (a.path(), b.path(), 1.0)
    96         yield (a.path(), b.path(), 1.0)
    97 
    97 
    98     # If the user requested similar files to be matched, search for them also.
    98     # If the user requested similar files to be matched, search for them also.
    99     if threshold < 1.0:
    99     if threshold < 1.0: