scm: bazaar: code layout cleanup adapter revisions method

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10409 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-09-17 07:58:31 +00:00
parent 55748b6fc0
commit dd89ce4594
1 changed files with 4 additions and 1 deletions

View File

@ -154,7 +154,10 @@ module Redmine
revision.paths << {:action => 'D', :path => "/#{path}", :revision => revid} revision.paths << {:action => 'D', :path => "/#{path}", :revision => revid}
when 'renamed' when 'renamed'
new_path = path.split('=>').last 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 end
end end