summaryrefslogtreecommitdiffstats
path: root/app/models/repository/mercurial.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 07:07:06 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 07:07:06 +0000
commit8a9db2841d84b477c8c439e1d5ebdd3afbbc088a (patch)
treefa65702d991cac25388a832511590e3140e2cef3 /app/models/repository/mercurial.rb
parenteb98a1f714d9169d826df20b7df2c4683142ebcc (diff)
downloadredmine-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.rb3
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)