@@ -34,6 +34,11 class Repository::Mercurial < Repository | |||||
34 | if entries |
|
34 | if entries | |
35 | entries.each do |entry| |
|
35 | entries.each do |entry| | |
36 | next unless entry.is_file? |
|
36 | next unless entry.is_file? | |
|
37 | # Set the filesize unless browsing a specific revision | |||
|
38 | if identifier.nil? | |||
|
39 | full_path = File.join(root_url, entry.path) | |||
|
40 | entry.size = File.stat(full_path).size if File.file?(full_path) | |||
|
41 | end | |||
37 | # Search the DB for the entry's last change |
|
42 | # Search the DB for the entry's last change | |
38 | change = changes.find(:first, :conditions => ["path = ?", scm.with_leading_slash(entry.path)], :order => "#{Changeset.table_name}.committed_on DESC") |
|
43 | change = changes.find(:first, :conditions => ["path = ?", scm.with_leading_slash(entry.path)], :order => "#{Changeset.table_name}.committed_on DESC") | |
39 | if change |
|
44 | if change |
General Comments 0
You need to be logged in to leave comments.
Login now