Show More
@@ -18,7 +18,12 b' def set_exec(f, mode):' | |||||
18 | s = os.stat(f).st_mode |
|
18 | s = os.stat(f).st_mode | |
19 | if (s & 0100 != 0) == mode: |
|
19 | if (s & 0100 != 0) == mode: | |
20 | return |
|
20 | return | |
21 | os.chmod(f, s & 0666 | (mode * 0111)) |
|
21 | if mode: | |
|
22 | umask = os.umask(0) | |||
|
23 | os.umask(umask) | |||
|
24 | os.chmod(f, s | (s & 0444) >> 2 & ~umask) | |||
|
25 | else: | |||
|
26 | os.chmod(f, s & 0666) | |||
22 |
|
27 | |||
23 | class filelog(revlog): |
|
28 | class filelog(revlog): | |
24 | def __init__(self, opener, path): |
|
29 | def __init__(self, opener, path): |
General Comments 0
You need to be logged in to leave comments.
Login now