Show More
@@ -8,6 +8,8 b' import os' | |||
|
8 | 8 | import sys |
|
9 | 9 | import tempfile |
|
10 | 10 | |
|
11 | tempprefix = 'hg-hghave-' | |
|
12 | ||
|
11 | 13 | def has_symlink(): |
|
12 | 14 | return hasattr(os, "symlink") |
|
13 | 15 | |
@@ -15,7 +17,7 b' def has_fifo():' | |||
|
15 | 17 | return hasattr(os, "mkfifo") |
|
16 | 18 | |
|
17 | 19 | def has_executablebit(): |
|
18 | fd, path = tempfile.mkstemp() | |
|
20 | fd, path = tempfile.mkstemp(prefix=tempprefix) | |
|
19 | 21 | os.close(fd) |
|
20 | 22 | try: |
|
21 | 23 | s = os.lstat(path).st_mode |
@@ -26,7 +28,7 b' def has_executablebit():' | |||
|
26 | 28 | |
|
27 | 29 | def has_eol_in_paths(): |
|
28 | 30 | try: |
|
29 | fd, path = tempfile.mkstemp(suffix='\n\r') | |
|
31 | fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r') | |
|
30 | 32 | os.close(fd) |
|
31 | 33 | os.remove(path) |
|
32 | 34 | return True |
General Comments 0
You need to be logged in to leave comments.
Login now