##// END OF EJS Templates
files: don't load the file if it is over the size limit since it...
dan -
r1029:518666ba default
parent child Browse files
Show More
@@ -224,14 +224,17 b' class FilesController(BaseRepoController'
224 c.file_tree = ''
224 c.file_tree = ''
225 if c.file.is_file():
225 if c.file.is_file():
226 c.file_last_commit = c.file.last_commit
226 c.file_last_commit = c.file.last_commit
227 if c.annotate: # annotation has precedence over renderer
227 if c.file.size < self.cut_off_limit_file:
228 c.annotated_lines = filenode_as_annotated_lines_tokens(
228 if c.annotate: # annotation has precedence over renderer
229 c.file)
229 c.annotated_lines = filenode_as_annotated_lines_tokens(
230 else:
230 c.file
231 c.renderer = (
231 )
232 c.renderer and h.renderer_from_filename(c.file.path))
232 else:
233 if not c.renderer:
233 c.renderer = (
234 c.lines = filenode_as_lines_tokens(c.file)
234 c.renderer and h.renderer_from_filename(c.file.path)
235 )
236 if not c.renderer:
237 c.lines = filenode_as_lines_tokens(c.file)
235
238
236 c.on_branch_head = self._is_valid_head(
239 c.on_branch_head = self._is_valid_head(
237 commit_id, c.rhodecode_repo)
240 commit_id, c.rhodecode_repo)
General Comments 0
You need to be logged in to leave comments. Login now