tests/hghave
branchstable
changeset 1012 018ef69bbe2f
parent 1010 13862cca5537
child 1013 e00f51032041
equal deleted inserted replaced
1011:565c2e4d216e 1012:018ef69bbe2f
   206         import OpenSSL
   206         import OpenSSL
   207         OpenSSL.SSL.Context
   207         OpenSSL.SSL.Context
   208         return True
   208         return True
   209     except ImportError:
   209     except ImportError:
   210         return False
   210         return False
       
   211 
       
   212 def has_windows():
       
   213     return os.name == 'nt'
   211 
   214 
   212 checks = {
   215 checks = {
   213     "baz": (has_baz, "GNU Arch baz client"),
   216     "baz": (has_baz, "GNU Arch baz client"),
   214     "bzr": (has_bzr, "Canonical's Bazaar client"),
   217     "bzr": (has_bzr, "Canonical's Bazaar client"),
   215     "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"),
   218     "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"),
   237     "svn15": (has_svn15, "subversion client and admin tools >= 1.5"),
   240     "svn15": (has_svn15, "subversion client and admin tools >= 1.5"),
   238     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   241     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   239     "symlink": (has_symlink, "symbolic links"),
   242     "symlink": (has_symlink, "symbolic links"),
   240     "tla": (has_tla, "GNU Arch tla client"),
   243     "tla": (has_tla, "GNU Arch tla client"),
   241     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   244     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
       
   245     "windows": (has_windows, "Windows"),
   242 }
   246 }
   243 
   247 
   244 def list_features():
   248 def list_features():
   245     for name, feature in checks.iteritems():
   249     for name, feature in checks.iteritems():
   246         desc = feature[1]
   250         desc = feature[1]