mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
similar: rename local variable to not collide with previous
Future patches will move the score function to the module level, so let's not shadow that.
This commit is contained in:
parent
25acd53e01
commit
3c1cbd7c9b
@ -81,8 +81,8 @@ def _findsimilarmatches(repo, added, removed, threshold):
|
||||
repo.ui.progress(_('searching'), None)
|
||||
|
||||
for dest, v in copies.iteritems():
|
||||
source, score = v
|
||||
yield source, dest, score
|
||||
source, bscore = v
|
||||
yield source, dest, bscore
|
||||
|
||||
def findrenames(repo, added, removed, threshold):
|
||||
'''find renamed files -- yields (before, after, score) tuples'''
|
||||
|
Loading…
Reference in New Issue
Block a user