# HG changeset patch # User Shun-ichi GOTO # Date 1185346690 -32400 # Node ID edfe69548e2a4669a1b23f90fef2b59bc1721505 # Parent 73169e5d2732f919111bbfe7f8e198f7ec2fb140 posixfile_nt: '+' should allow read access. This fixes unexpected I/O error on committing many files due to cset:8a53b39cd402 (r4902 in crew). diff --git a/mercurial/util_win32.py b/mercurial/util_win32.py --- a/mercurial/util_win32.py +++ b/mercurial/util_win32.py @@ -209,7 +209,7 @@ class posixfile_nt(object): 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