tests/hghave
branchstable
changeset 1031 b914fc162545
parent 1027 f8c2547c8f16
child 1032 5923d03569b3
equal deleted inserted replaced
1030:b2dd573fd8ca 1031:b914fc162545
   218 def has_serve():
   218 def has_serve():
   219     return os.name != 'nt' # gross approximation
   219     return os.name != 'nt' # gross approximation
   220 
   220 
   221 def has_tic():
   221 def has_tic():
   222     return matchoutput('test -x "`which tic`"', '')
   222     return matchoutput('test -x "`which tic`"', '')
       
   223 
       
   224 def has_msys():
       
   225     return os.getenv('MSYSTEM')
   223 
   226 
   224 checks = {
   227 checks = {
   225     "baz": (has_baz, "GNU Arch baz client"),
   228     "baz": (has_baz, "GNU Arch baz client"),
   226     "bzr": (has_bzr, "Canonical's Bazaar client"),
   229     "bzr": (has_bzr, "Canonical's Bazaar client"),
   227     "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"),
   230     "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"),
   253     "system-sh": (has_system_sh, "system() uses sh"),
   256     "system-sh": (has_system_sh, "system() uses sh"),
   254     "tic": (has_tic, "terminfo compiler"),
   257     "tic": (has_tic, "terminfo compiler"),
   255     "tla": (has_tla, "GNU Arch tla client"),
   258     "tla": (has_tla, "GNU Arch tla client"),
   256     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   259     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   257     "windows": (has_windows, "Windows"),
   260     "windows": (has_windows, "Windows"),
       
   261     "msys": (has_msys, "Windows with MSYS"),
   258 }
   262 }
   259 
   263 
   260 def list_features():
   264 def list_features():
   261     for name, feature in checks.iteritems():
   265     for name, feature in checks.iteritems():
   262         desc = feature[1]
   266         desc = feature[1]