diff mercurial/util_win32.py @ 2250:45aef5ddcdbe

windows: revlog.lazyparser not always safe to use. can not use on windows < nt or if win32 api not available.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Wed, 10 May 2006 11:10:18 -0700
parents caf2c6ef5b0e
children d6392a7c03dd
line wrap: on
line diff
--- 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.