tests/hghave
changeset 5086 4cf6f8dbd1b4
parent 4881 c51c9bc4579d
child 5088 7e2385a31933
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]