scm: bazaar: use identifier in blame.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5392 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4c3d8b681b
commit
f86779bd59
|
@ -209,7 +209,13 @@ module Redmine
|
||||||
identifier = nil
|
identifier = nil
|
||||||
io.each_line do |line|
|
io.each_line do |line|
|
||||||
next unless line =~ %r{^(\d+) ([^|]+)\| (.*)$}
|
next unless line =~ %r{^(\d+) ([^|]+)\| (.*)$}
|
||||||
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
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
Loading…
Reference in New Issue