##// END OF EJS Templates
hghave: detect support for EOL in paths.
Patrick Mezard -
r5074:e86788af default
parent child Browse files
Show More
@@ -23,10 +23,20 b' def has_executablebit():'
23 finally:
23 finally:
24 os.remove(path)
24 os.remove(path)
25
25
26 def has_eol_in_paths():
27 try:
28 fd, path = tempfile.mkstemp(suffix='\n\r')
29 os.close(fd)
30 os.remove(path)
31 return True
32 except:
33 return False
34
26 checks = {
35 checks = {
27 "symlink": (has_symlink, "symbolic links"),
36 "symlink": (has_symlink, "symbolic links"),
28 "fifo": (has_fifo, "named pipes"),
37 "fifo": (has_fifo, "named pipes"),
29 "execbit": (has_executablebit, "executable bit"),
38 "execbit": (has_executablebit, "executable bit"),
39 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
30 }
40 }
31
41
32 def list_features():
42 def list_features():
General Comments 0
You need to be logged in to leave comments. Login now