diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-07 17:51:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-07 17:51:54 +0000 |
commit | 7fae4b089242526f59a778b0ca799bb86d370864 (patch) | |
tree | 6d37982bc9f1e01b8f260834d2ee1a60a28bff5a | |
parent | 6239e319ac83e7770bb59a5e09bb7b7dd952d80f (diff) | |
download | redmine-7fae4b089242526f59a778b0ca799bb86d370864.tar.gz redmine-7fae4b089242526f59a778b0ca799bb86d370864.zip |
Bazaar adapter: fixed log with partial revisions parsing.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@962 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/scm/adapters/bazaar_adapter.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index ec9fd741c..4d7afeacc 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -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 |