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],
- :order => "#{Changeset.table_name}.revision DESC")
+ c = Change.find(
+ :first,
+ :include => :changeset,
+ :conditions => [
+ "#{Change.table_name}.revision = ? and #{Changeset.table_name}.repository_id = ?",
+ e.lastrev.revision,
+ id
+ ],
+ :order => "#{Changeset.table_name}.revision DESC")
if c
e.lastrev.identifier = c.changeset.revision
- e.lastrev.name = c.changeset.revision
- e.lastrev.author = c.changeset.committer
+ e.lastrev.name = c.changeset.revision
+ e.lastrev.author = c.changeset.committer
end
end
end