Process working files through encode filters in dodiff()
authorPetr Mazanec <petr.mazanec@tiscali.cz>
Sun, 29 Jan 2006 10:10:16 +1300
changeset 1648 80640ef93aec
parent 1647 64a1169c927d
child 1649 beb7da710c8a
Process working files through encode filters in dodiff()
mercurial/commands.py
--- 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