equal
deleted
inserted
replaced
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: |