hghave: detect subversion client and admin tools availability
authorPatrick Mezard <pmezard@gmail.com>
Mon, 27 Aug 2007 22:17:51 +0200
changeset 5253 d82ebcdf20e1
parent 5252 c0281c6b40b0
child 5254 d61e98a82cee
hghave: detect subversion client and admin tools availability
tests/hghave
--- a/tests/hghave	Mon Aug 27 22:17:51 2007 +0200
+++ b/tests/hghave	Mon Aug 27 22:17:51 2007 +0200
@@ -65,6 +65,10 @@
 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 @@
     "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"),
 }