diff -r 3e5fbf001f9b -r 45aef5ddcdbe mercurial/util.py --- a/mercurial/util.py Wed May 10 10:32:24 2006 -0700 +++ b/mercurial/util.py Wed May 10 11:10:18 2006 -0700 @@ -489,6 +489,13 @@ posixfile = file +def is_win_9x(): + '''return true if run on windows 95, 98 or me.''' + try: + return sys.getwindowsversion()[3] == 1 + except AttributeError: + return os.name == 'nt' and 'command' in os.environ.get('comspec', '') + # Platform specific variants if os.name == 'nt': demandload(globals(), "msvcrt") @@ -570,6 +577,8 @@ try: # override functions with win32 versions if possible from util_win32 import * + if not is_win_9x(): + posixfile = posixfile_nt except ImportError: pass