mercurial/hgweb/webcommands.py
changeset 40248 b24c23f7c1f9
parent 40211 d216ae4cc3f6
child 40292 9c6473d2038b
equal deleted inserted replaced
40247:844deb408a5b 40248:b24c23f7c1f9
  1170     type_ = web.req.qsparams.get('type')
  1170     type_ = web.req.qsparams.get('type')
  1171     allowed = web.configlist("web", "allow-archive")
  1171     allowed = web.configlist("web", "allow-archive")
  1172     key = web.req.qsparams['node']
  1172     key = web.req.qsparams['node']
  1173 
  1173 
  1174     if type_ not in webutil.archivespecs:
  1174     if type_ not in webutil.archivespecs:
  1175         msg = 'Unsupported archive type: %s' % type_
  1175         msg = 'Unsupported archive type: %s' % stringutil.pprint(type_)
  1176         raise ErrorResponse(HTTP_NOT_FOUND, msg)
  1176         raise ErrorResponse(HTTP_NOT_FOUND, msg)
  1177 
  1177 
  1178     if not ((type_ in allowed or
  1178     if not ((type_ in allowed or
  1179              web.configbool("web", "allow" + type_))):
  1179              web.configbool("web", "allow" + type_))):
  1180         msg = 'Archive type not allowed: %s' % type_
  1180         msg = 'Archive type not allowed: %s' % type_