Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/hghave @ 5086:4cf6f8dbd1b4
hghave: detect FIFO availability
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 06 Aug 2007 09:57:23 +0200 |
parents | c51c9bc4579d |
children | 7e2385a31933 |
comparison
equal
deleted
inserted
replaced
5085:92d7ce0da063 | 5086:4cf6f8dbd1b4 |
---|---|
7 import sys | 7 import sys |
8 | 8 |
9 def has_symlink(): | 9 def has_symlink(): |
10 return hasattr(os, "symlink") | 10 return hasattr(os, "symlink") |
11 | 11 |
12 def has_fifo(): | |
13 return hasattr(os, "mkfifo") | |
14 | |
12 checks = { | 15 checks = { |
13 "symlink": (has_symlink, "symbolic links"), | 16 "symlink": (has_symlink, "symbolic links"), |
17 "fifo": (has_fifo, "named pipes"), | |
14 } | 18 } |
15 | 19 |
16 def list_features(): | 20 def list_features(): |
17 for name, feature in checks.iteritems(): | 21 for name, feature in checks.iteritems(): |
18 desc = feature[1] | 22 desc = feature[1] |