diff mercurial/localrepo.py @ 2887:05257fd28591

filelog: add hash-based comparisons For status, rather than reconstruct full file versions from revlog for comparison, compare hashes.
author Matt Mackall <mpm@selenic.com>
date Mon, 14 Aug 2006 15:07:00 -0500
parents 3d6efcbbd1c9
children 5bb65c3945a3
line wrap: on
line diff
--- a/mercurial/localrepo.py	Mon Aug 14 14:42:15 2006 -0500
+++ b/mercurial/localrepo.py	Mon Aug 14 15:07:00 2006 -0500
@@ -668,8 +668,7 @@
 
         def fcmp(fn, mf):
             t1 = self.wread(fn)
-            t2 = self.file(fn).read(mf.get(fn, nullid))
-            return cmp(t1, t2)
+            return self.file(fn).cmp(mf.get(fn, nullid), t1)
 
         def mfmatches(node):
             change = self.changelog.read(node)