changeset 4998:81f8ff2a9bf2

posixfile_nt: '+' should allow read access. This fixes unexpected I/O error on committing many files due to cset:8a53b39cd402 (r4902 in crew).
author Shun-ichi GOTO <shunichi.goto@gmail.com>
date Wed, 25 Jul 2007 15:58:10 +0900
parents a0d37976cd5b
children 54ff1bb4b53a b6c3abdbe0eb 1d0bfa4c75c0
files mercurial/util_win32.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util_win32.py	Mon Jul 23 20:44:08 2007 -0500
+++ b/mercurial/util_win32.py	Wed Jul 25 15:58:10 2007 +0900
@@ -209,7 +209,7 @@
 
     def __init__(self, name, mode='rb'):
         access = 0
-        if 'r' in mode:
+        if 'r' in mode or '+' in mode:
             access |= win32file.GENERIC_READ
         if 'w' in mode or 'a' in mode or '+' in mode:
             access |= win32file.GENERIC_WRITE