tests/hghave
changeset 12784 763be3cd084a
parent 12740 b86c6954ec4c
child 13289 58b26b360a57
equal deleted inserted replaced
12783:191d0fd5c2fd 12784:763be3cd084a
   179 def has_outer_repo():
   179 def has_outer_repo():
   180     return matchoutput('hg root 2>&1', r'')
   180     return matchoutput('hg root 2>&1', r'')
   181 
   181 
   182 def has_ssl():
   182 def has_ssl():
   183     try:
   183     try:
   184         from OpenSSL.SSL import SysCallError, ZeroReturnError
       
   185         import ssl
   184         import ssl
   186         return True
   185         return True
   187     except ImportError:
   186     except ImportError:
   188         return False
   187         return False
   189 
   188 
   205     "lsprof": (has_lsprof, "python lsprof module"),
   204     "lsprof": (has_lsprof, "python lsprof module"),
   206     "mtn": (has_mtn, "monotone client (> 0.31)"),
   205     "mtn": (has_mtn, "monotone client (> 0.31)"),
   207     "outer-repo": (has_outer_repo, "outer repo"),
   206     "outer-repo": (has_outer_repo, "outer repo"),
   208     "p4": (has_p4, "Perforce server and client"),
   207     "p4": (has_p4, "Perforce server and client"),
   209     "pygments": (has_pygments, "Pygments source highlighting library"),
   208     "pygments": (has_pygments, "Pygments source highlighting library"),
   210     "ssl": (has_ssl, "python ssl and openssl modules"),
   209     "ssl": (has_ssl, "python >= 2.6 ssl module"),
   211     "svn": (has_svn, "subversion client and admin tools"),
   210     "svn": (has_svn, "subversion client and admin tools"),
   212     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   211     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   213     "symlink": (has_symlink, "symbolic links"),
   212     "symlink": (has_symlink, "symbolic links"),
   214     "tla": (has_tla, "GNU Arch tla client"),
   213     "tla": (has_tla, "GNU Arch tla client"),
   215     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   214     "unix-permissions": (has_unix_permissions, "unix-style permissions"),