]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: code layout cleanup adapter revisions method
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 17 Sep 2012 07:58:31 +0000 (07:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 17 Sep 2012 07:58:31 +0000 (07:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10409 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/bazaar_adapter.rb

index 873395172b6651e4632ec421bd5d2a15e7781461..a069146a2d946501f0f8d266629aa48f3afa4f64 100644 (file)
@@ -154,7 +154,10 @@ module Redmine
                         revision.paths << {:action => 'D', :path => "/#{path}", :revision => revid}
                       when 'renamed'
                         new_path = path.split('=>').last
-                        revision.paths << {:action => 'M', :path => "/#{new_path.strip}", :revision => revid} if new_path
+                        if new_path
+                          revision.paths << {:action => 'M', :path => "/#{new_path.strip}",
+                                             :revision => revid}
+                        end
                       end
                     end
                   end