# HG changeset patch # User Brendan Cully # Date 1176419128 25200 # Node ID ec64f263e49a34efba287e35ebc24f68027faa72 # Parent 345ed833854d1e8c78ec50b825518d73d908608d# Parent f4a1eac52d43b223658e6ccd092b3b7c521facb3 Merge with Matt diff -r 345ed833854d -r ec64f263e49a mercurial/util.py --- a/mercurial/util.py Mon Apr 09 10:39:28 2007 +0200 +++ b/mercurial/util.py Thu Apr 12 16:05:28 2007 -0700 @@ -766,6 +766,9 @@ except: return True +_umask = os.umask(0) +os.umask(_umask) + def checkexec(path): """ Check whether the given path is on a filesystem with UNIX-like exec flags