##// END OF EJS Templates
fixes issue with mercurial 2.0 and archival of subrepos....
marcink -
r1664:65386911 beta
parent child Browse files
Show More
@@ -367,6 +367,11 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 # patch and reset hooks section of UI config to not run any
371 # hooks on fetching archives with subrepos
372 for k, v in c.rhodecode_repo._repo.ui.configitems('hooks'):
373 c.rhodecode_repo._repo.ui.setconfig('hooks', k, None)
374
370 cs = c.rhodecode_repo.get_changeset(revision)
375 cs = c.rhodecode_repo.get_changeset(revision)
371 content_type = settings.ARCHIVE_SPECS[fileformat][0]
376 content_type = settings.ARCHIVE_SPECS[fileformat][0]
372 except ChangesetDoesNotExistError:
377 except ChangesetDoesNotExistError:
General Comments 0
You need to be logged in to leave comments. Login now