Bazaar adapter: fixed log with partial revisions parsing.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@962 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6239e319ac
commit
7fae4b0892
|
@ -110,9 +110,12 @@ module Redmine
|
||||||
revision.scmid = $1.strip
|
revision.scmid = $1.strip
|
||||||
elsif line =~ /^timestamp: (.+)$/
|
elsif line =~ /^timestamp: (.+)$/
|
||||||
revision.time = Time.parse($1).localtime
|
revision.time = Time.parse($1).localtime
|
||||||
|
elsif line =~ /^ -----/
|
||||||
|
# partial revisions
|
||||||
|
parsing = nil unless parsing == 'message'
|
||||||
elsif line =~ /^(message|added|modified|removed|renamed):/
|
elsif line =~ /^(message|added|modified|removed|renamed):/
|
||||||
parsing = $1
|
parsing = $1
|
||||||
elsif line =~ /^ (.+)$/
|
elsif line =~ /^ (.*)$/
|
||||||
if parsing == 'message'
|
if parsing == 'message'
|
||||||
revision.message << "#{$1}\n"
|
revision.message << "#{$1}\n"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue