# HG changeset patch # User Patrick Mezard # Date 1184708022 -7200 # Node ID 73169e5d2732f919111bbfe7f8e198f7ec2fb140 # Parent 167c422c745fee634cce9ec2b937559c0ba684ee posixfile_nt: '+' was understood as read mode instead of update. diff -r 167c422c745f -r 73169e5d2732 mercurial/util_win32.py --- a/mercurial/util_win32.py Mon Aug 06 00:35:06 2007 -0300 +++ b/mercurial/util_win32.py Tue Jul 17 23:33:42 2007 +0200 @@ -209,9 +209,9 @@ 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