##// END OF EJS Templates
Calculate file history always from latest changeset to always show full history....
marcink -
r2929:f3b913b7 beta
parent child Browse files
Show More
@@ -153,9 +153,8 b' class FilesController(BaseRepoController'
153 c.file = c.changeset.get_node(f_path)
153 c.file = c.changeset.get_node(f_path)
154
154
155 if c.file.is_file():
155 if c.file.is_file():
156 _hist = c.changeset.get_file_history(f_path)
156 _hist = c.rhodecode_repo.get_changeset().get_file_history(f_path)
157 c.file_history = self._get_node_history(c.changeset, f_path,
157 c.file_history = self._get_node_history(None, f_path, _hist)
158 _hist)
159 c.authors = []
158 c.authors = []
160 for a in set([x.author for x in _hist]):
159 for a in set([x.author for x in _hist]):
161 c.authors.append((h.email(a), h.person(a)))
160 c.authors.append((h.email(a), h.person(a)))
@@ -487,8 +486,12 b' class FilesController(BaseRepoController'
487 return render('files/file_diff.html')
486 return render('files/file_diff.html')
488
487
489 def _get_node_history(self, cs, f_path, changesets=None):
488 def _get_node_history(self, cs, f_path, changesets=None):
489 if cs is None:
490 # if we pass empty CS calculate history based on tip
491 cs = c.rhodecode_repo.get_changeset()
490 if changesets is None:
492 if changesets is None:
491 changesets = cs.get_file_history(f_path)
493 changesets = cs.get_file_history(f_path)
494
492 hist_l = []
495 hist_l = []
493
496
494 changesets_group = ([], _("Changesets"))
497 changesets_group = ([], _("Changesets"))
General Comments 0
You need to be logged in to leave comments. Login now