changeset 15718 | c604a3d1969d |
parent 15710 | f63e40047372 |
child 15719 | 1dd60426b061 |
--- a/mercurial/util.py Thu Dec 22 15:56:27 2011 -0600 +++ b/mercurial/util.py Sat Dec 24 00:50:56 2011 +0900 @@ -622,9 +622,8 @@ The root should be normcase-ed, too. ''' def find(p, contents): - lenp = len(p) for n in contents: - if lenp == len(n) and normcase(n) == p: + if normcase(n) == p: return n return None