diff -r a87c41f65aff -r 9e055cfdd620 mercurial/patch.py --- a/mercurial/patch.py Tue May 26 22:37:26 2009 +0200 +++ b/mercurial/patch.py Tue May 26 22:59:52 2009 +0200 @@ -307,8 +307,7 @@ def hashlines(self): self.hash = {} - for x in xrange(len(self.lines)): - s = self.lines[x] + for x, s in enumerate(self.lines): self.hash.setdefault(s, []).append(x) def write_rej(self):