##// END OF EJS Templates
files: don't pre load heavy attributes to compute file search
super-admin -
r5142:5611212e default
parent child Browse files
Show More
@@ -605,8 +605,11 b' class ScmModel(BaseModel):'
605 _repo = self._get_repo(repo_name)
605 _repo = self._get_repo(repo_name)
606 commit = _repo.scm_instance().get_commit(commit_id=commit_id)
606 commit = _repo.scm_instance().get_commit(commit_id=commit_id)
607 root_path = root_path.lstrip('/')
607 root_path = root_path.lstrip('/')
608 for __, dirs, files in commit.walk(root_path):
609
608
609 top_node = commit.get_node(root_path)
610 top_node.default_pre_load = []
611
612 for __, dirs, files in commit.walk(top_node):
610 for f in files:
613 for f in files:
611
614
612 _data = {
615 _data = {
General Comments 0
You need to be logged in to leave comments. Login now