fixed in svn browser: revisions were ignored when no author was found

git-svn-id: http://redmine.rubyforge.org/svn/trunk@109 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2006-12-24 17:18:29 +00:00
parent d3600e729f
commit ad02b3fb7b
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ module SvnRepos
:lastrev => Revision.new({ :lastrev => Revision.new({
:identifier => entry.elements['commit'].attributes['revision'], :identifier => entry.elements['commit'].attributes['revision'],
:time => Time.parse(entry.elements['commit'].elements['date'].text), :time => Time.parse(entry.elements['commit'].elements['date'].text),
:author => entry.elements['commit'].elements['author'].text :author => (entry.elements['commit'].elements['author'] ? entry.elements['commit'].elements['author'].text : "anonymous")
}) })
}) })
end end
@ -92,7 +92,7 @@ module SvnRepos
paths.sort! { |x,y| x[:path] <=> y[:path] } paths.sort! { |x,y| x[:path] <=> y[:path] }
revisions << Revision.new({:identifier => logentry.attributes['revision'], revisions << Revision.new({:identifier => logentry.attributes['revision'],
:author => logentry.elements['author'].text, :author => (logentry.elements['author'] ? logentry.elements['author'].text : "anonymous"),
:time => Time.parse(logentry.elements['date'].text), :time => Time.parse(logentry.elements['date'].text),
:message => logentry.elements['msg'].text, :message => logentry.elements['msg'].text,
:paths => paths :paths => paths