@@ -101,9 +101,9 module Redmine | |||||
101 | end |
|
101 | end | |
102 |
|
102 | |||
103 | def target(path) |
|
103 | def target(path) | |
104 |
path ||= |
|
104 | path ||= '' | |
105 |
base = path.match(/^\//) ? root_url : url |
|
105 | base = path.match(/^\//) ? root_url : url | |
106 |
|
|
106 | shell_quote("#{base}/#{path}".gsub(/[?<>\*]/, '')) | |
107 | end |
|
107 | end | |
108 |
|
108 | |||
109 | def logger |
|
109 | def logger |
@@ -100,7 +100,7 module Redmine | |||||
100 | cmd = "#{SVN_BIN} log --xml -r #{identifier_from}:#{identifier_to}" |
|
100 | cmd = "#{SVN_BIN} log --xml -r #{identifier_from}:#{identifier_to}" | |
101 | cmd << credentials_string |
|
101 | cmd << credentials_string | |
102 | cmd << " --verbose " if options[:with_paths] |
|
102 | cmd << " --verbose " if options[:with_paths] | |
103 | cmd << target(path) |
|
103 | cmd << ' ' + target(path) | |
104 | shellout(cmd) do |io| |
|
104 | shellout(cmd) do |io| | |
105 | begin |
|
105 | begin | |
106 | doc = REXML::Document.new(io) |
|
106 | doc = REXML::Document.new(io) |
General Comments 0
You need to be logged in to leave comments.
Login now