Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/util_win32.py @ 4907:164daf101a54
Automated merge with http://hg.intevation.org/mercurial/crew
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 17 Jul 2007 15:26:27 -0700 |
parents | 8a53b39cd402 |
children | 81f8ff2a9bf2 |
line wrap: on
line diff
--- a/mercurial/util_win32.py +++ b/mercurial/util_win32.py @@ -209,9 +209,9 @@ class posixfile_nt(object): def __init__(self, name, mode='rb'): access = 0 - if 'r' in mode or '+' in mode: + if 'r' in mode: access |= win32file.GENERIC_READ - if 'w' in mode or 'a' in mode: + if 'w' in mode or 'a' in mode or '+' in mode: access |= win32file.GENERIC_WRITE if 'r' in mode: creation = win32file.OPEN_EXISTING