mercurial/localrepo.py
changeset 3296 4546a5e31cb8
parent 3295 764688cf51e5
child 3299 a1aad25ccc3e
child 3300 a2d93b186a0e
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -497,8 +497,7 @@ class localrepository(repo.repository):
                 fp2 = nullid
 
             # is the file unmodified from the parent? report existing entry
-            # fixme: use filelog.cmp()
-            if fp2 == nullid and text == filelog.read(fp1):
+            if fp2 == nullid and not filelog.cmp(fp1, text):
                 return (fp1, None, None, {})
 
         return (None, fp1, fp2, meta)