diff -r 6409d9a0df43 -r 9ae0034f2772 mercurial/util.py --- a/mercurial/util.py Fri Jun 24 22:51:39 2005 -0800 +++ b/mercurial/util.py Fri Jun 24 22:58:14 2005 -0800 @@ -16,6 +16,8 @@ # Platfor specific varients if os.name == 'nt': + nulldev = 'NUL:' + def is_exec(f, last): return last @@ -32,7 +34,10 @@ def readlock(pathname): return file(pathname).read() + else: + nulldev = '/dev/null' + def is_exec(f, last): return (os.stat(f).st_mode & 0100 != 0) @@ -57,5 +62,3 @@ def readlock(pathname): return os.readlink(pathname) - -