##// END OF EJS Templates
fixed issue with file history for new added files
marcink -
r2943:c40a7185 beta
parent child Browse files
Show More
@@ -155,7 +155,11 b' class FilesController(BaseRepoController'
155
155
156 if c.file.is_file():
156 if c.file.is_file():
157 _hist = c.rhodecode_repo.get_changeset().get_file_history(f_path)
157 _hist = c.rhodecode_repo.get_changeset().get_file_history(f_path)
158 c.file_changeset = c.changeset if c.changeset.revision < _hist[0].revision else _hist[0]
158 c.file_changeset = c.changeset
159 if _hist:
160 c.file_changeset = (c.changeset
161 if c.changeset.revision < _hist[0].revision
162 else _hist[0])
159 c.file_history = self._get_node_history(None, f_path, _hist)
163 c.file_history = self._get_node_history(None, f_path, _hist)
160 c.authors = []
164 c.authors = []
161 for a in set([x.author for x in _hist]):
165 for a in set([x.author for x in _hist]):
General Comments 0
You need to be logged in to leave comments. Login now