diff -r 59581b667cd7 -r fc24c10424d2 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Aug 23 18:19:19 2012 -0500 +++ b/mercurial/cmdutil.py Sat Aug 04 07:14:40 2012 +0200 @@ -515,7 +515,7 @@ sys.stdout.flush() sys.stderr.flush() - nullfd = os.open(util.nulldev, os.O_RDWR) + nullfd = os.open(os.devnull, os.O_RDWR) logfilefd = nullfd if logfile: logfilefd = os.open(logfile, os.O_RDWR | os.O_CREAT | os.O_APPEND)