]> source.dussan.org Git - redmine.git/commitdiff
scm: subversion: set available version above 1.3 (#4273, #1604).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 May 2011 08:26:38 +0000 (08:26 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 May 2011 08:26:38 +0000 (08:26 +0000)
"--xml" options are introduced in 1.3.
http://subversion.apache.org/docs/release-notes/1.3.html

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5636 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/subversion_adapter.rb

index c59a053f66750d85d0adc2f6a9aceb55fadb2b4f..4f544b137cefdee6552d3c5887c759a1e37eb4a0 100644 (file)
@@ -40,7 +40,9 @@ module Redmine
           end\r
 \r
           def client_available\r
-            !client_version.empty?\r
+            # --xml options are introduced in 1.3.\r
+            # http://subversion.apache.org/docs/release-notes/1.3.html\r
+            client_version_above?([1, 3])\r
           end\r
 \r
           def svn_binary_version\r