Commits

Benoit Boissinot committed 47c634b

remove unnecessary call to umask

Comments (0)

Files changed (1)

mercurial/dirstate.py

 
     def rebuild(self, parent, files):
         self.clear()
-        umask = os.umask(0)
-        os.umask(umask)
         for f in files:
             if files.execf(f):
-                self.map[f] = ('n', ~umask, -1, 0)
+                self.map[f] = ('n', 0777, -1, 0)
             else:
-                self.map[f] = ('n', ~umask & 0666, -1, 0)
+                self.map[f] = ('n', 0666, -1, 0)
         self.pl = (parent, nullid)
         self.markdirty()