mercurial/commands.py
changeset 1648 80640ef93aec
parent 1637 3b1b44b917f4
child 1654 b7fc961507db
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -283,7 +283,7 @@ def dodiff(fp, ui, repo, node1, node2, f
         if not node1:
             node1 = repo.dirstate.parents()[0]
         def read(f):
-            return repo.wfile(f).read()
+            return repo.wread(f)
 
     if ui.quiet:
         r = None