windows: provide filename in IOError exceptions
This brings the Windows posixfile errors in line with the errors
on other platforms.
--- a/mercurial/windows.py Sun Sep 13 17:23:47 2009 +0200
+++ b/mercurial/windows.py Mon Sep 14 19:53:43 2009 -0500
@@ -17,7 +17,7 @@
try:
return osutil.posixfile(name, mode, buffering)
except WindowsError, err:
- raise IOError(err.errno, err.strerror)
+ raise IOError(err.errno, '%s: %s' % (name, err.strerror))
posixfile.__doc__ = osutil.posixfile.__doc__
class winstdout(object):