def client_version\r
@@client_version ||= (svn_binary_version || [])\r
end\r
-
- def client_available
- !client_version.empty?
- end
+\r
+ def client_available\r
+ !client_version.empty?\r
+ end\r
\r
def svn_binary_version\r
- scm_version = scm_version_from_command_line
- if m = scm_version.match(%r{\A(.*?)((\d+\.)+\d+)})
- m[2].scan(%r{\d+}).collect(&:to_i)
- end
+ scm_version = scm_version_from_command_line\r
+ if m = scm_version.match(%r{\A(.*?)((\d+\.)+\d+)})\r
+ m[2].scan(%r{\d+}).collect(&:to_i)\r
+ end\r
+ end\r
+\r
+ def scm_version_from_command_line\r
+ shellout("#{sq_bin} --version") { |io| io.read }.to_s\r
end\r
-
- def scm_version_from_command_line
- shellout("#{sq_bin} --version") { |io| io.read }.to_s
- end
end\r
\r
# Get info about the svn repository\r
def diff(path, identifier_from, identifier_to=nil, type="inline")\r
path ||= ''\r
identifier_from = (identifier_from and identifier_from.to_i > 0) ? identifier_from.to_i : ''\r
+\r
identifier_to = (identifier_to and identifier_to.to_i > 0) ? identifier_to.to_i : (identifier_from.to_i - 1)\r
\r
cmd = "#{self.class.sq_bin} diff -r "\r