mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
fix source indent of lib/redmine/scm/adapters/cvs_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20641 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a91da01ade
commit
6fb4728536
@ -109,35 +109,43 @@ module Redmine
|
|||||||
time_l = fields[-3].split(' ')
|
time_l = fields[-3].split(' ')
|
||||||
if time_l.size == 5 && time_l[4].length == 4
|
if time_l.size == 5 && time_l[4].length == 4
|
||||||
begin
|
begin
|
||||||
time = Time.parse(
|
time =
|
||||||
"#{time_l[1]} #{time_l[2]} #{time_l[3]} GMT #{time_l[4]}")
|
Time.parse(
|
||||||
|
"#{time_l[1]} #{time_l[2]} #{time_l[3]} GMT #{time_l[4]}"
|
||||||
|
)
|
||||||
rescue
|
rescue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
entries << Entry.new(
|
entries <<
|
||||||
{
|
Entry.new(
|
||||||
:name => scm_iconv('UTF-8', @path_encoding, fields[-5]),
|
{
|
||||||
#:path => fields[-4].include?(path)?fields[-4]:(path + "/"+ fields[-4]),
|
:name => scm_iconv('UTF-8', @path_encoding, fields[-5]),
|
||||||
:path => scm_iconv('UTF-8', @path_encoding, "#{path_locale}/#{fields[-5]}"),
|
#:path => fields[-4].include?(path)?fields[-4]:(path + "/"+ fields[-4]),
|
||||||
:kind => 'file',
|
:path => scm_iconv('UTF-8', @path_encoding, "#{path_locale}/#{fields[-5]}"),
|
||||||
:size => nil,
|
:kind => 'file',
|
||||||
:lastrev => Revision.new(
|
:size => nil,
|
||||||
{
|
:lastrev =>
|
||||||
:revision => fields[-4],
|
Revision.new(
|
||||||
:name => scm_iconv('UTF-8', @path_encoding, fields[-4]),
|
{
|
||||||
:time => time,
|
:revision => fields[-4],
|
||||||
:author => ''
|
:name => scm_iconv('UTF-8', @path_encoding, fields[-4]),
|
||||||
})
|
:time => time,
|
||||||
})
|
:author => ''
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
else
|
else
|
||||||
entries << Entry.new(
|
entries <<
|
||||||
{
|
Entry.new(
|
||||||
:name => scm_iconv('UTF-8', @path_encoding, fields[1]),
|
{
|
||||||
:path => scm_iconv('UTF-8', @path_encoding, "#{path_locale}/#{fields[1]}"),
|
:name => scm_iconv('UTF-8', @path_encoding, fields[1]),
|
||||||
:kind => 'dir',
|
:path => scm_iconv('UTF-8', @path_encoding, "#{path_locale}/#{fields[1]}"),
|
||||||
:size => nil,
|
:kind => 'dir',
|
||||||
:lastrev => nil
|
:size => nil,
|
||||||
})
|
:lastrev => nil
|
||||||
|
}
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -217,19 +225,23 @@ module Redmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
logger.debug("********** YIELD Revision #{revision}::#{revBranch}")
|
logger.debug("********** YIELD Revision #{revision}::#{revBranch}")
|
||||||
yield Revision.new({
|
yield Revision.new(
|
||||||
:time => date,
|
{
|
||||||
:author => author,
|
:time => date,
|
||||||
:message => commit_log.chomp,
|
:author => author,
|
||||||
:paths => [{
|
:message => commit_log.chomp,
|
||||||
:revision => revision.dup,
|
:paths => [
|
||||||
:branch => revBranch.dup,
|
{
|
||||||
:path => scm_iconv('UTF-8', @path_encoding, entry_path),
|
:revision => revision.dup,
|
||||||
:name => scm_iconv('UTF-8', @path_encoding, entry_name),
|
:branch => revBranch.dup,
|
||||||
:kind => 'file',
|
:path => scm_iconv('UTF-8', @path_encoding, entry_path),
|
||||||
:action => file_state
|
:name => scm_iconv('UTF-8', @path_encoding, entry_name),
|
||||||
}]
|
:kind => 'file',
|
||||||
})
|
:action => file_state
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
)
|
||||||
end
|
end
|
||||||
commit_log = ""
|
commit_log = ""
|
||||||
revision = nil
|
revision = nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user