diff -r 8b03c988efb3 -r 69e0bcf36961 mercurial/manifest.py --- a/mercurial/manifest.py Sat Aug 07 15:38:05 2010 +0200 +++ b/mercurial/manifest.py Sat Aug 07 16:12:51 2010 -0300 @@ -84,7 +84,7 @@ hi = start end = advance(lo, '\0') found = m[lo:end] - if cmp(s, found) == 0: + if s == found: # we know that after the null there are 40 bytes of sha1 end = advance(end + 40, '\n') return (lo, end + 1)