end
def target(path)
- path ||= ""
- base = path.match(/^\//) ? root_url : url
- " \"" << "#{base}/#{path}".gsub(/["?<>\*]/, '') << "\""
+ path ||= ''
+ base = path.match(/^\//) ? root_url : url
+ shell_quote("#{base}/#{path}".gsub(/[?<>\*]/, ''))
end
def logger
cmd = "#{SVN_BIN} log --xml -r #{identifier_from}:#{identifier_to}"\r
cmd << credentials_string\r
cmd << " --verbose " if options[:with_paths]\r
- cmd << target(path)\r
+ cmd << ' ' + target(path)\r
shellout(cmd) do |io|\r
begin\r
doc = REXML::Document.new(io)\r
cmd = "#{SVN_BIN} diff -r "\r
cmd << "#{identifier_to}:"\r
cmd << "#{identifier_from}"\r
- cmd << "#{target(path)}@#{identifier_from}"\r
+ cmd << " #{target(path)}@#{identifier_from}"\r
cmd << credentials_string\r
diff = []\r
shellout(cmd) do |io|\r