mercurial/cmdutil.py
changeset 14168 135e244776f0
parent 14138 c18204fd35b0
child 14220 21b8ce4d3331
--- a/mercurial/cmdutil.py	Mon May 02 10:11:05 2011 +0200
+++ b/mercurial/cmdutil.py	Mon May 02 10:11:18 2011 +0200
@@ -91,7 +91,7 @@
             if logfile == '-':
                 message = sys.stdin.read()
             else:
-                message = open(logfile).read()
+                message = util.readfile(logfile)
         except IOError, inst:
             raise util.Abort(_("can't read commit message '%s': %s") %
                              (logfile, inst.strerror))