Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 15440:9ab2b3b730ee
windows: use umask 022 in debugstate output
debugstate would always report files as mode 666 or 777 on Windows.
umask is not used on Windows, but faking and using a defalt value of 022
matches what the test suite uses on Unix.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 07 Nov 2011 03:14:54 +0100 |
parents | 871c77e78f5d |
children | 25ea33fe7e5c |
line wrap: on
line diff
--- a/mercurial/windows.py Mon Nov 07 03:14:53 2011 +0100 +++ b/mercurial/windows.py Mon Nov 07 03:14:54 2011 +0100 @@ -26,7 +26,7 @@ unlink = win32.unlink nulldev = 'NUL:' -umask = 002 +umask = 0022 # wrap osutil.posixfile to provide friendlier exceptions def posixfile(name, mode='r', buffering=-1):