scm: mercurial: add identifier to entry.lastrev (#3724, #3421).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4857 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-16 15:43:15 +00:00
parent 1f836a1d43
commit 0185d23c54
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ module Redmine
n = CGI.unescape(e['name']) n = CGI.unescape(e['name'])
p = "#{path_prefix}#{n}" p = "#{path_prefix}#{n}"
lr = Revision.new(:revision => e['revision'], :scmid => e['node'], lr = Revision.new(:revision => e['revision'], :scmid => e['node'],
:identifier => e['node'],
:time => Time.at(e['time'].to_i)) :time => Time.at(e['time'].to_i))
entries << Entry.new(:name => n, :path => p, :kind => 'file', entries << Entry.new(:name => n, :path => p, :kind => 'file',
:size => e['size'].to_i, :lastrev => lr) :size => e['size'].to_i, :lastrev => lr)