Project

General

Profile

Feature #1149 ยป bzr_size.patch

Patch for file size display with Bazaar - Andreas Deininger, 2008-05-02 08:35

View differences:

app/models/repository/bazaar.rb (Arbeitskopie)
if entries
entries.each do |e|
next if e.lastrev.revision.blank?
# Set the filesize unless browsing a specific revision
if identifier.nil?
full_path = File.join(root_url, e.path)
e.size = File.stat(full_path).size if File.file?(full_path)
end
c = Change.find(:first,
:include => :changeset,
:conditions => ["#{Change.table_name}.revision = ? and #{Changeset.table_name}.repository_id = ?", e.lastrev.revision, id],
    (1-1/1)