summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/subversion_adapter.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 05:52:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 05:52:07 +0000
commit39c7f2942c81e9f0554b51cc7038b928b13b7466 (patch)
tree41ba390c38478b82c141b7b53e1e1f8f81e164db /lib/redmine/scm/adapters/subversion_adapter.rb
parent5778d3c51e1118f7202b07be74f000085b178c7f (diff)
downloadredmine-39c7f2942c81e9f0554b51cc7038b928b13b7466.tar.gz
redmine-39c7f2942c81e9f0554b51cc7038b928b13b7466.zip
scm: subversion: use revision in blame.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5390 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/subversion_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 59f577e64..2b800ea0d 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -239,7 +239,13 @@ module Redmine
shellout(cmd) do |io|
io.each_line do |line|
next unless line =~ %r{^\s*(\d+)\s*(\S+)\s(.*)$}
- blame.add_line($3.rstrip, Revision.new(:identifier => $1.to_i, :author => $2.strip))
+ rev = $1.to_i
+ blame.add_line($3.rstrip,
+ Revision.new(
+ :identifier => rev,
+ :revision => rev,
+ :author => $2.strip
+ ))
end
end
return nil if $? && $?.exitstatus != 0