equal
deleted
inserted
replaced
21 HTTP_NOT_FOUND, |
21 HTTP_NOT_FOUND, |
22 HTTP_OK, |
22 HTTP_OK, |
23 get_contact, |
23 get_contact, |
24 paritygen, |
24 paritygen, |
25 staticfile, |
25 staticfile, |
|
26 ) |
|
27 from . import ( |
|
28 request as requestmod, |
26 ) |
29 ) |
27 |
30 |
28 from .. import ( |
31 from .. import ( |
29 archival, |
32 archival, |
30 dagop, |
33 dagop, |
1213 if encoding: |
1216 if encoding: |
1214 headers.append(('Content-Encoding', encoding)) |
1217 headers.append(('Content-Encoding', encoding)) |
1215 req.headers.extend(headers) |
1218 req.headers.extend(headers) |
1216 req.respond(HTTP_OK, mimetype) |
1219 req.respond(HTTP_OK, mimetype) |
1217 |
1220 |
1218 archival.archive(web.repo, req, cnode, artype, prefix=name, |
1221 bodyfh = requestmod.offsettrackingwriter(req.write) |
|
1222 |
|
1223 archival.archive(web.repo, bodyfh, cnode, artype, prefix=name, |
1219 matchfn=match, |
1224 matchfn=match, |
1220 subrepos=web.configbool("web", "archivesubrepos")) |
1225 subrepos=web.configbool("web", "archivesubrepos")) |
1221 return [] |
1226 return [] |
1222 |
1227 |
1223 |
1228 |