diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index 79a001e41..60999c993 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -95,9 +95,8 @@ class Repository::Mercurial < Repository changesets. includes(:user). where(latest_changesets_cond(path, rev, limit)). - limit(limit). order("#{Changeset.table_name}.id DESC"). - all + limit(limit) end def latest_changesets_cond(path, rev, limit)