##// 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,12 +224,15 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.file.size < self.cut_off_limit_file:
227 if c.annotate: # annotation has precedence over renderer
228 if c.annotate: # annotation has precedence over renderer
228 c.annotated_lines = filenode_as_annotated_lines_tokens(
229 c.annotated_lines = filenode_as_annotated_lines_tokens(
229 c.file)
230 c.file
231 )
230 else:
232 else:
231 c.renderer = (
233 c.renderer = (
232 c.renderer and h.renderer_from_filename(c.file.path))
234 c.renderer and h.renderer_from_filename(c.file.path)
235 )
233 if not c.renderer:
236 if not c.renderer:
234 c.lines = filenode_as_lines_tokens(c.file)
237 c.lines = filenode_as_lines_tokens(c.file)
235
238
General Comments 0
You need to be logged in to leave comments. Login now