diff -r 3e5fbf001f9b -r 45aef5ddcdbe mercurial/util_win32.py --- a/mercurial/util_win32.py Wed May 10 10:32:24 2006 -0700 +++ b/mercurial/util_win32.py Wed May 10 11:10:18 2006 -0700 @@ -183,11 +183,11 @@ filename = win32process.GetModuleFileNameEx(proc, 0) return [os.path.join(os.path.dirname(filename), 'mercurial.ini')] -class posixfile(object): +class posixfile_nt(object): '''file object with posix-like semantics. on windows, normal files can not be deleted or renamed if they are open. must open with win32file.FILE_SHARE_DELETE. this flag does not exist on - windows <= nt.''' + windows < nt, so do not use this class there.''' # tried to use win32file._open_osfhandle to pass fd to os.fdopen, # but does not work at all. wrap win32 file api instead.