mercurial/cmdutil.py
changeset 8987 c68ccda3451b
parent 8941 37a9d551346c
child 8988 1247751d9bf8
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)