tests/hghave.py
branchstable
changeset 21208 0e1cbd3d52f7
parent 20644 779ceb84f4f7
child 22093 45611a306f77
equal deleted inserted replaced
21207:b9defeeb62e6 21208:0e1cbd3d52f7
   256 def has_system_sh():
   256 def has_system_sh():
   257     return os.name != 'nt'
   257     return os.name != 'nt'
   258 
   258 
   259 def has_serve():
   259 def has_serve():
   260     return os.name != 'nt' # gross approximation
   260     return os.name != 'nt' # gross approximation
       
   261 
       
   262 def has_test_repo():
       
   263     t = os.environ["TESTDIR"]
       
   264     return os.path.isdir(os.path.join(t, "..", ".hg"))
   261 
   265 
   262 def has_tic():
   266 def has_tic():
   263     try:
   267     try:
   264         import curses
   268         import curses
   265         curses.COLOR_BLUE
   269         curses.COLOR_BLUE
   315     "svn13": (has_svn13, "subversion client and admin tools >= 1.3"),
   319     "svn13": (has_svn13, "subversion client and admin tools >= 1.3"),
   316     "svn15": (has_svn15, "subversion client and admin tools >= 1.5"),
   320     "svn15": (has_svn15, "subversion client and admin tools >= 1.5"),
   317     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   321     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   318     "symlink": (has_symlink, "symbolic links"),
   322     "symlink": (has_symlink, "symbolic links"),
   319     "system-sh": (has_system_sh, "system() uses sh"),
   323     "system-sh": (has_system_sh, "system() uses sh"),
       
   324     "test-repo": (has_test_repo, "running tests from repository"),
   320     "tic": (has_tic, "terminfo compiler and curses module"),
   325     "tic": (has_tic, "terminfo compiler and curses module"),
   321     "tla": (has_tla, "GNU Arch tla client"),
   326     "tla": (has_tla, "GNU Arch tla client"),
   322     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   327     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   323     "windows": (has_windows, "Windows"),
   328     "windows": (has_windows, "Windows"),
   324     "msys": (has_msys, "Windows with MSYS"),
   329     "msys": (has_msys, "Windows with MSYS"),