diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 05:52:07 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 05:52:07 +0000 |
commit | 39c7f2942c81e9f0554b51cc7038b928b13b7466 (patch) | |
tree | 41ba390c38478b82c141b7b53e1e1f8f81e164db /lib/redmine/scm/adapters/subversion_adapter.rb | |
parent | 5778d3c51e1118f7202b07be74f000085b178c7f (diff) | |
download | redmine-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.rb | 8 |
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
|