comparison mercurial/cmdutil.py @ 8987:c68ccda3451b

findrenames: drop unused argument defaults
author Matt Mackall <mpm@selenic.com>
date Mon, 29 Jun 2009 15:34:17 -0500
parents 37a9d551346c
children 1247751d9bf8
comparison
equal deleted inserted replaced
8986:7f349588665f 8987:c68ccda3451b
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)