@@ -65,7 +65,7 module Redmine | |||||
65 | entries = Entries.new |
|
65 | entries = Entries.new | |
66 | cmd = "#{CVS_BIN} -d #{root_url} rls -ed" |
|
66 | cmd = "#{CVS_BIN} -d #{root_url} rls -ed" | |
67 | cmd << " -D \"#{time_to_cvstime(identifier)}\"" if identifier |
|
67 | cmd << " -D \"#{time_to_cvstime(identifier)}\"" if identifier | |
68 | cmd << " #{path_with_project}" |
|
68 | cmd << " #{shell_quote path_with_project}" | |
69 | shellout(cmd) do |io| |
|
69 | shellout(cmd) do |io| | |
70 | io.each_line(){|line| |
|
70 | io.each_line(){|line| | |
71 | fields=line.chop.split('/',-1) |
|
71 | fields=line.chop.split('/',-1) | |
@@ -110,7 +110,7 module Redmine | |||||
110 | path_with_project="#{url}#{with_leading_slash(path)}" |
|
110 | path_with_project="#{url}#{with_leading_slash(path)}" | |
111 | cmd = "#{CVS_BIN} -d #{root_url} rlog" |
|
111 | cmd = "#{CVS_BIN} -d #{root_url} rlog" | |
112 | cmd << " -d\">#{time_to_cvstime(identifier_from)}\"" if identifier_from |
|
112 | cmd << " -d\">#{time_to_cvstime(identifier_from)}\"" if identifier_from | |
113 | cmd << " #{path_with_project}" |
|
113 | cmd << " #{shell_quote path_with_project}" | |
114 | shellout(cmd) do |io| |
|
114 | shellout(cmd) do |io| | |
115 | state="entry_start" |
|
115 | state="entry_start" | |
116 |
|
116 | |||
@@ -230,7 +230,7 module Redmine | |||||
230 | def diff(path, identifier_from, identifier_to=nil) |
|
230 | def diff(path, identifier_from, identifier_to=nil) | |
231 | logger.debug "<cvs> diff path:'#{path}',identifier_from #{identifier_from}, identifier_to #{identifier_to}" |
|
231 | logger.debug "<cvs> diff path:'#{path}',identifier_from #{identifier_from}, identifier_to #{identifier_to}" | |
232 | path_with_project="#{url}#{with_leading_slash(path)}" |
|
232 | path_with_project="#{url}#{with_leading_slash(path)}" | |
233 | cmd = "#{CVS_BIN} -d #{root_url} rdiff -u -r#{identifier_to} -r#{identifier_from} #{path_with_project}" |
|
233 | cmd = "#{CVS_BIN} -d #{root_url} rdiff -u -r#{identifier_to} -r#{identifier_from} #{shell_quote path_with_project}" | |
234 | diff = [] |
|
234 | diff = [] | |
235 | shellout(cmd) do |io| |
|
235 | shellout(cmd) do |io| | |
236 | io.each_line do |line| |
|
236 | io.each_line do |line| | |
@@ -245,7 +245,7 module Redmine | |||||
245 | identifier = (identifier) ? identifier : "HEAD" |
|
245 | identifier = (identifier) ? identifier : "HEAD" | |
246 | logger.debug "<cvs> cat path:'#{path}',identifier #{identifier}" |
|
246 | logger.debug "<cvs> cat path:'#{path}',identifier #{identifier}" | |
247 | path_with_project="#{url}#{with_leading_slash(path)}" |
|
247 | path_with_project="#{url}#{with_leading_slash(path)}" | |
248 | cmd = "#{CVS_BIN} -d #{root_url} co -r#{identifier} -p #{path_with_project}" |
|
248 | cmd = "#{CVS_BIN} -d #{root_url} co -r#{identifier} -p #{shell_quote path_with_project}" | |
249 | cat = nil |
|
249 | cat = nil | |
250 | shellout(cmd) do |io| |
|
250 | shellout(cmd) do |io| | |
251 | cat = io.read |
|
251 | cat = io.read | |
@@ -258,7 +258,7 module Redmine | |||||
258 | identifier = (identifier) ? identifier : "HEAD" |
|
258 | identifier = (identifier) ? identifier : "HEAD" | |
259 | logger.debug "<cvs> annotate path:'#{path}',identifier #{identifier}" |
|
259 | logger.debug "<cvs> annotate path:'#{path}',identifier #{identifier}" | |
260 | path_with_project="#{url}#{with_leading_slash(path)}" |
|
260 | path_with_project="#{url}#{with_leading_slash(path)}" | |
261 | cmd = "#{CVS_BIN} -d #{root_url} rannotate -r#{identifier} #{path_with_project}" |
|
261 | cmd = "#{CVS_BIN} -d #{root_url} rannotate -r#{identifier} #{shell_quote path_with_project}" | |
262 | blame = Annotate.new |
|
262 | blame = Annotate.new | |
263 | shellout(cmd) do |io| |
|
263 | shellout(cmd) do |io| | |
264 | io.each_line do |line| |
|
264 | io.each_line do |line| |
General Comments 0
You need to be logged in to leave comments.
Login now