changeset 461 | 9ae0034f2772 |
parent 441 | e8af362cfb01 |
child 464 | 50da4bb9cab6 |
--- 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) - -