##// END OF EJS Templates
scm: mercurial: increase limit of branch directory latest changesets....
Toshi MARUYAMA -
r5026:2a161b457639
parent child
Show More
@@ -99,7 +99,10 class Repository::Mercurial < Repository
99 # Revisions in root directory and sub directory are not equal.
99 # Revisions in root directory and sub directory are not equal.
100 # So, in order to get correct limit, we need to get all revisions.
100 # So, in order to get correct limit, we need to get all revisions.
101 # But, it is very heavy.
101 # But, it is very heavy.
102 args << scm.nodes_in_branch(rev, :limit => limit)
102 # Mercurial does not treat direcotry.
103 # So, "hg log DIR" is very heavy.
104 branch_limit = path.blank? ? limit : ( limit * 5 )
105 args << scm.nodes_in_branch(rev, :limit => branch_limit)
103 elsif last = rev ? find_changeset_by_name(scm.tagmap[rev] || rev) : nil
106 elsif last = rev ? find_changeset_by_name(scm.tagmap[rev] || rev) : nil
104 cond << "#{Changeset.table_name}.id <= ?"
107 cond << "#{Changeset.table_name}.id <= ?"
105 args << last.id
108 args << last.id
General Comments 0
You need to be logged in to leave comments. Login now