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:
parent
d3600e729f
commit
ad02b3fb7b
|
@ -58,7 +58,7 @@ module SvnRepos
|
|||
:lastrev => Revision.new({
|
||||
:identifier => entry.elements['commit'].attributes['revision'],
|
||||
: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
|
||||
|
@ -92,7 +92,7 @@ module SvnRepos
|
|||
paths.sort! { |x,y| x[:path] <=> y[:path] }
|
||||
|
||||
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),
|
||||
:message => logentry.elements['msg'].text,
|
||||
:paths => paths
|
||||
|
|
Loading…
Reference in New Issue