mercurial/hg.py
changeset 418 0446f698d38e
parent 417 f2d1f5fd0179
child 419 28511fc21073
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -569,7 +569,7 @@ class localrepository:
             try:
                 fp = self.wjoin(f)
                 mf1[f] = is_exec(fp)
-                t = self.wopener(f).read()
+                t = self.wfile(f).read()
             except IOError:
                 self.warn("trouble committing %s!\n" % f)
                 raise