@@ -34,6 +34,11 class Repository::Mercurial < Repository | |||
|
34 | 34 | if entries |
|
35 | 35 | entries.each do |entry| |
|
36 | 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 | 42 | # Search the DB for the entry's last change |
|
38 | 43 | change = changes.find(:first, :conditions => ["path = ?", scm.with_leading_slash(entry.path)], :order => "#{Changeset.table_name}.committed_on DESC") |
|
39 | 44 | if change |
General Comments 0
You need to be logged in to leave comments.
Login now