mercurial/hgweb/hgweb_mod.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 48946 642e31cb55f0
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
   410             if cmd == b'rev' and b'mercurial' in ua:
   410             if cmd == b'rev' and b'mercurial' in ua:
   411                 req.qsparams[b'style'] = b'raw'
   411                 req.qsparams[b'style'] = b'raw'
   412 
   412 
   413             if cmd == b'archive':
   413             if cmd == b'archive':
   414                 fn = req.qsparams[b'node']
   414                 fn = req.qsparams[b'node']
   415                 for type_, spec in pycompat.iteritems(webutil.archivespecs):
   415                 for type_, spec in webutil.archivespecs.items():
   416                     ext = spec[2]
   416                     ext = spec[2]
   417                     if fn.endswith(ext):
   417                     if fn.endswith(ext):
   418                         req.qsparams[b'node'] = fn[: -len(ext)]
   418                         req.qsparams[b'node'] = fn[: -len(ext)]
   419                         req.qsparams[b'type'] = type_
   419                         req.qsparams[b'type'] = type_
   420         else:
   420         else: