Show More
@@ -119,14 +119,22 b' class RepoChangelogView(RepoAppView):' | |||
|
119 | 119 | |
|
120 | 120 | def _load_changelog_data( |
|
121 | 121 | self, c, collection, page, chunk_size, branch_name=None, |
|
122 | dynamic=False): | |
|
122 | dynamic=False, f_path=None, commit_id=None): | |
|
123 | 123 | |
|
124 | 124 | def url_generator(**kw): |
|
125 | 125 | query_params = {} |
|
126 | 126 | query_params.update(kw) |
|
127 |
|
|
|
128 |
|
|
|
129 | repo_name=c.rhodecode_db_repo.repo_name, _query=query_params) | |
|
127 | if f_path: | |
|
128 | # changelog for file | |
|
129 | return h.route_path( | |
|
130 | 'repo_changelog_file', | |
|
131 | repo_name=c.rhodecode_db_repo.repo_name, | |
|
132 | commit_id=commit_id, f_path=f_path, | |
|
133 | _query=query_params) | |
|
134 | else: | |
|
135 | return h.route_path( | |
|
136 | 'repo_changelog', | |
|
137 | repo_name=c.rhodecode_db_repo.repo_name, _query=query_params) | |
|
130 | 138 | |
|
131 | 139 | c.total_cs = len(collection) |
|
132 | 140 | c.showing_commits = min(chunk_size, c.total_cs) |
@@ -215,12 +223,15 b' class RepoChangelogView(RepoAppView):' | |||
|
215 | 223 | branch_name=branch_name, pre_load=pre_load) |
|
216 | 224 | |
|
217 | 225 | self._load_changelog_data( |
|
218 |
c, collection, p, chunk_size, c.branch_name, |
|
|
226 | c, collection, p, chunk_size, c.branch_name, | |
|
227 | f_path=f_path, commit_id=commit_id) | |
|
219 | 228 | |
|
220 | 229 | except EmptyRepositoryError as e: |
|
221 | 230 | h.flash(safe_str(h.escape(e)), category='warning') |
|
222 | 231 | raise HTTPFound( |
|
223 | 232 | h.route_path('repo_summary', repo_name=self.db_repo_name)) |
|
233 | except HTTPFound: | |
|
234 | raise | |
|
224 | 235 | except (RepositoryError, CommitDoesNotExistError, Exception) as e: |
|
225 | 236 | log.exception(safe_str(e)) |
|
226 | 237 | h.flash(safe_str(h.escape(e)), category='error') |
General Comments 0
You need to be logged in to leave comments.
Login now