scm: cvs: use scm_cmd() in adapter entries().
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5083 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d3d7ea08f4
commit
b5bf2fb322
@ -99,10 +99,10 @@ module Redmine
|
|||||||
logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'"
|
logger.debug "<cvs> entries '#{path}' with identifier '#{identifier}'"
|
||||||
path_with_project="#{url}#{with_leading_slash(path)}"
|
path_with_project="#{url}#{with_leading_slash(path)}"
|
||||||
entries = Entries.new
|
entries = Entries.new
|
||||||
cmd = "#{self.class.sq_bin} -d #{shell_quote root_url} rls -e"
|
cmd_args = %w|rls -e|
|
||||||
cmd << " -D \"#{time_to_cvstime(identifier)}\"" if identifier
|
cmd_args << "-D" << time_to_cvstime(identifier) if identifier
|
||||||
cmd << " #{shell_quote path_with_project}"
|
cmd_args << path_with_project
|
||||||
shellout(cmd) do |io|
|
scm_cmd(*cmd_args) do |io|
|
||||||
io.each_line(){|line|
|
io.each_line(){|line|
|
||||||
fields=line.chop.split('/',-1)
|
fields=line.chop.split('/',-1)
|
||||||
logger.debug(">>InspectLine #{fields.inspect}")
|
logger.debug(">>InspectLine #{fields.inspect}")
|
||||||
@ -130,8 +130,9 @@ module Redmine
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
|
||||||
entries.sort_by_name
|
entries.sort_by_name
|
||||||
|
rescue ScmCommandAborted
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
STARTLOG="----------------------------"
|
STARTLOG="----------------------------"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user