@@ -47,14 +47,19 class Repository::Bazaar < Repository | |||||
47 | full_path = File.join(root_url, e.path) |
|
47 | full_path = File.join(root_url, e.path) | |
48 | e.size = File.stat(full_path).size if File.file?(full_path) |
|
48 | e.size = File.stat(full_path).size if File.file?(full_path) | |
49 | end |
|
49 | end | |
50 |
c = Change.find( |
|
50 | c = Change.find( | |
51 | :include => :changeset, |
|
51 | :first, | |
52 | :conditions => ["#{Change.table_name}.revision = ? and #{Changeset.table_name}.repository_id = ?", e.lastrev.revision, id], |
|
52 | :include => :changeset, | |
53 | :order => "#{Changeset.table_name}.revision DESC") |
|
53 | :conditions => [ | |
|
54 | "#{Change.table_name}.revision = ? and #{Changeset.table_name}.repository_id = ?", | |||
|
55 | e.lastrev.revision, | |||
|
56 | id | |||
|
57 | ], | |||
|
58 | :order => "#{Changeset.table_name}.revision DESC") | |||
54 | if c |
|
59 | if c | |
55 | e.lastrev.identifier = c.changeset.revision |
|
60 | e.lastrev.identifier = c.changeset.revision | |
56 | e.lastrev.name = c.changeset.revision |
|
61 | e.lastrev.name = c.changeset.revision | |
57 | e.lastrev.author = c.changeset.committer |
|
62 | e.lastrev.author = c.changeset.committer | |
58 | end |
|
63 | end | |
59 | end |
|
64 | end | |
60 | end |
|
65 | end |
General Comments 0
You need to be logged in to leave comments.
Login now