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:
Jean-Philippe Lang 2007-12-07 17:51:54 +00:00
parent 6239e319ac
commit 7fae4b0892
1 changed files with 4 additions and 1 deletions

View File

@ -110,9 +110,12 @@ module Redmine
revision.scmid = $1.strip
elsif line =~ /^timestamp: (.+)$/
revision.time = Time.parse($1).localtime
elsif line =~ /^ -----/
# partial revisions
parsing = nil unless parsing == 'message'
elsif line =~ /^(message|added|modified|removed|renamed):/
parsing = $1
elsif line =~ /^ (.+)$/
elsif line =~ /^ (.*)$/
if parsing == 'message'
revision.message << "#{$1}\n"
else