]> source.dussan.org Git - redmine.git/commitdiff
scm: subversion: use revision in blame.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 05:52:07 +0000 (05:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 05:52:07 +0000 (05:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5390 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/subversion_adapter.rb

index 59f577e6433fc16afaaef39795fc5b9041809ef1..2b800ea0d290ab8d93e70eedafa77a7dd533de14 100644 (file)
@@ -239,7 +239,13 @@ module Redmine
           shellout(cmd) do |io|\r
             io.each_line do |line|\r
               next unless line =~ %r{^\s*(\d+)\s*(\S+)\s(.*)$}\r
-              blame.add_line($3.rstrip, Revision.new(:identifier => $1.to_i, :author => $2.strip))\r
+              rev = $1.to_i\r
+              blame.add_line($3.rstrip,\r
+                   Revision.new(\r
+                      :identifier => rev,\r
+                      :revision   => rev,\r
+                      :author     => $2.strip\r
+                      ))\r
             end\r
           end\r
           return nil if $? && $?.exitstatus != 0\r