diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 07:07:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 07:07:06 +0000 |
commit | 8a9db2841d84b477c8c439e1d5ebdd3afbbc088a (patch) | |
tree | fa65702d991cac25388a832511590e3140e2cef3 /app/models/repository/mercurial.rb | |
parent | eb98a1f714d9169d826df20b7df2c4683142ebcc (diff) | |
download | redmine-8a9db2841d84b477c8c439e1d5ebdd3afbbc088a.tar.gz redmine-8a9db2841d84b477c8c439e1d5ebdd3afbbc088a.zip |
backout r12562 : remove unneeded Relation#all from Repository::Mercurial#latest_changesets
git-svn-id: http://svn.redmine.org/redmine/trunk@12567 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/mercurial.rb')
-rw-r--r-- | app/models/repository/mercurial.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index 60999c993..79a001e41 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -95,8 +95,9 @@ class Repository::Mercurial < Repository changesets. includes(:user). where(latest_changesets_cond(path, rev, limit)). + limit(limit). order("#{Changeset.table_name}.id DESC"). - limit(limit) + all end def latest_changesets_cond(path, rev, limit) |