# HG changeset patch # User Patrick Mezard # Date 1184708022 -7200 # Node ID 8a53b39cd4026f5f11aa3b324baee54c01d9f74f # Parent 27414950abf5102b3488fbb6ee27fa6de2a752d8 posixfile_nt: '+' was understood as read mode instead of update. diff --git a/mercurial/util_win32.py b/mercurial/util_win32.py --- 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