]> source.dussan.org Git - redmine.git/commitdiff
backout r12562 : remove unneeded Relation#all from Repository::Mercurial#latest_chang...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 07:07:06 +0000 (07:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 07:07:06 +0000 (07:07 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12567 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/mercurial.rb

index 60999c993908fee6ecff44fa33bdb2f6e6f0397c..79a001e41f89856dac17c6166cfabc3740fe6264 100644 (file)
@@ -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)