equal
deleted
inserted
replaced
263 return _match.always(repo.root, repo.getcwd()) |
263 return _match.always(repo.root, repo.getcwd()) |
264 |
264 |
265 def matchfiles(repo, files): |
265 def matchfiles(repo, files): |
266 return _match.exact(repo.root, repo.getcwd(), files) |
266 return _match.exact(repo.root, repo.getcwd(), files) |
267 |
267 |
268 def findrenames(repo, match=None, threshold=0.5): |
268 def findrenames(repo, match, threshold): |
269 '''find renamed files -- yields (before, after, score) tuples''' |
269 '''find renamed files -- yields (before, after, score) tuples''' |
270 added, removed = repo.status(match=match)[1:3] |
270 added, removed = repo.status(match=match)[1:3] |
271 ctx = repo['.'] |
271 ctx = repo['.'] |
272 for a in added: |
272 for a in added: |
273 aa = repo.wread(a) |
273 aa = repo.wread(a) |