# HG changeset patch # User Patrick Mezard # Date 1188245871 -7200 # Node ID d82ebcdf20e110406cb516abb83f89d1156b2fee # Parent c0281c6b40b0c35ebb5c35d69a7a376dbde3ab4c hghave: detect subversion client and admin tools availability diff --git a/tests/hghave b/tests/hghave --- a/tests/hghave +++ b/tests/hghave @@ -65,6 +65,10 @@ def has_lsprof(): def has_git(): return matchoutput('git --version 2>&1', r'^git version') +def has_svn(): + return matchoutput('svn --version 2>&1', r'^svn, version') and \ + matchoutput('svnadmin --version 2>&1', r'^svnadmin, version') + checks = { "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), "execbit": (has_executablebit, "executable bit"), @@ -72,6 +76,7 @@ checks = { "fifo": (has_fifo, "named pipes"), "hotshot": (has_hotshot, "python hotshot module"), "lsprof": (has_lsprof, "python lsprof module"), + "svn": (has_svn, "subversion client and admin tools"), "symlink": (has_symlink, "symbolic links"), }