# HG changeset patch # User Patrick Mezard # Date 1188245871 -7200 # Node ID d61e98a82ceec0206b1f9899ee27c68a1e6014dd # Parent d82ebcdf20e110406cb516abb83f89d1156b2fee hghave: detect subversion bindings availability diff -r d82ebcdf20e1 -r d61e98a82cee tests/hghave --- a/tests/hghave Mon Aug 27 22:17:51 2007 +0200 +++ b/tests/hghave Mon Aug 27 22:17:51 2007 +0200 @@ -69,6 +69,13 @@ return matchoutput('svn --version 2>&1', r'^svn, version') and \ matchoutput('svnadmin --version 2>&1', r'^svnadmin, version') +def has_svn_bindings(): + try: + import svn.core + return True + except ImportError: + return False + checks = { "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), "execbit": (has_executablebit, "executable bit"), @@ -77,6 +84,7 @@ "hotshot": (has_hotshot, "python hotshot module"), "lsprof": (has_lsprof, "python lsprof module"), "svn": (has_svn, "subversion client and admin tools"), + "svn-bindings": (has_svn_bindings, "subversion python bindings"), "symlink": (has_symlink, "symbolic links"), }