scm: cvs: code clean up lib/redmine/scm/adapters/cvs_adapter.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5380 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
572af75c6e
commit
c6ec41473e
|
@ -164,7 +164,6 @@ module Redmine
|
||||||
cmd_args << path_with_project
|
cmd_args << path_with_project
|
||||||
scm_cmd(*cmd_args) do |io|
|
scm_cmd(*cmd_args) do |io|
|
||||||
state = "entry_start"
|
state = "entry_start"
|
||||||
|
|
||||||
commit_log = String.new
|
commit_log = String.new
|
||||||
revision = nil
|
revision = nil
|
||||||
date = nil
|
date = nil
|
||||||
|
@ -173,15 +172,12 @@ module Redmine
|
||||||
entry_name = nil
|
entry_name = nil
|
||||||
file_state = nil
|
file_state = nil
|
||||||
branch_map = nil
|
branch_map = nil
|
||||||
|
|
||||||
io.each_line() do |line|
|
io.each_line() do |line|
|
||||||
|
|
||||||
if state != "revision" && /^#{ENDLOG}/ =~ line
|
if state != "revision" && /^#{ENDLOG}/ =~ line
|
||||||
commit_log = String.new
|
commit_log = String.new
|
||||||
revision = nil
|
revision = nil
|
||||||
state = "entry_start"
|
state = "entry_start"
|
||||||
end
|
end
|
||||||
|
|
||||||
if state=="entry_start"
|
if state=="entry_start"
|
||||||
branch_map=Hash.new
|
branch_map=Hash.new
|
||||||
if /^RCS file: #{Regexp.escape(root_url_path)}\/#{Regexp.escape(path_with_project)}(.+),v$/ =~ line
|
if /^RCS file: #{Regexp.escape(root_url_path)}\/#{Regexp.escape(path_with_project)}(.+),v$/ =~ line
|
||||||
|
|
Loading…
Reference in New Issue