Show More
@@ -7,7 +7,7 b'' | |||||
7 |
|
7 | |||
8 | :created_on: Apr 21, 2010 |
|
8 | :created_on: Apr 21, 2010 | |
9 | :author: marcink |
|
9 | :author: marcink | |
10 |
:copyright: (C) 20 |
|
10 | :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com> | |
11 | :license: GPLv3, see COPYING for more details. |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
13 | # This program is free software: you can redistribute it and/or modify |
|
13 | # This program is free software: you can redistribute it and/or modify | |
@@ -127,7 +127,7 b' class FilesController(BaseRepoController' | |||||
127 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
127 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
128 | 'repository.admin') |
|
128 | 'repository.admin') | |
129 | def index(self, repo_name, revision, f_path): |
|
129 | def index(self, repo_name, revision, f_path): | |
130 |
# |
|
130 | # redirect to given revision from form if given | |
131 | post_revision = request.POST.get('at_rev', None) |
|
131 | post_revision = request.POST.get('at_rev', None) | |
132 | if post_revision: |
|
132 | if post_revision: | |
133 | cs = self.__get_cs_or_redirect(post_revision, repo_name) |
|
133 | cs = self.__get_cs_or_redirect(post_revision, repo_name) | |
@@ -367,6 +367,12 b' class FilesController(BaseRepoController' | |||||
367 | if dbrepo.enable_downloads is False: |
|
367 | if dbrepo.enable_downloads is False: | |
368 | return _('downloads disabled') |
|
368 | return _('downloads disabled') | |
369 |
|
369 | |||
|
370 | if c.rhodecode_repo.alias == 'hg': | |||
|
371 | # patch and reset hooks section of UI config to not run any | |||
|
372 | # hooks on fetching archives with subrepos | |||
|
373 | for k, v in c.rhodecode_repo._repo.ui.configitems('hooks'): | |||
|
374 | c.rhodecode_repo._repo.ui.setconfig('hooks', k, None) | |||
|
375 | ||||
370 | cs = c.rhodecode_repo.get_changeset(revision) |
|
376 | cs = c.rhodecode_repo.get_changeset(revision) | |
371 | content_type = settings.ARCHIVE_SPECS[fileformat][0] |
|
377 | content_type = settings.ARCHIVE_SPECS[fileformat][0] | |
372 | except ChangesetDoesNotExistError: |
|
378 | except ChangesetDoesNotExistError: |
General Comments 0
You need to be logged in to leave comments.
Login now