Show More
@@ -1295,6 +1295,10 b' The full set of options is:' | |||||
1295 | (DEPRECATED) Whether to allow .zip downloading of repository |
|
1295 | (DEPRECATED) Whether to allow .zip downloading of repository | |
1296 | revisions. Default is False. This feature creates temporary files. |
|
1296 | revisions. Default is False. This feature creates temporary files. | |
1297 |
|
1297 | |||
|
1298 | ``archivesubrepos`` | |||
|
1299 | Whether to recurse into subrepositories when archiving. Default is | |||
|
1300 | False. | |||
|
1301 | ||||
1298 | ``baseurl`` |
|
1302 | ``baseurl`` | |
1299 | Base URL to use when publishing URLs in other locations, so |
|
1303 | Base URL to use when publishing URLs in other locations, so | |
1300 | third-party tools like email notification hooks can construct |
|
1304 | third-party tools like email notification hooks can construct |
@@ -14,6 +14,7 b' from common import paritygen, staticfile' | |||||
14 | from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND |
|
14 | from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND | |
15 | from mercurial import graphmod, patch |
|
15 | from mercurial import graphmod, patch | |
16 | from mercurial import help as helpmod |
|
16 | from mercurial import help as helpmod | |
|
17 | from mercurial import scmutil | |||
17 | from mercurial.i18n import _ |
|
18 | from mercurial.i18n import _ | |
18 |
|
19 | |||
19 | # __all__ is populated with the allowed commands. Be sure to add to it if |
|
20 | # __all__ is populated with the allowed commands. Be sure to add to it if | |
@@ -799,7 +800,11 b' def archive(web, req, tmpl):' | |||||
799 | headers.append(('Content-Encoding', encoding)) |
|
800 | headers.append(('Content-Encoding', encoding)) | |
800 | req.header(headers) |
|
801 | req.header(headers) | |
801 | req.respond(HTTP_OK) |
|
802 | req.respond(HTTP_OK) | |
802 | archival.archive(web.repo, req, cnode, artype, prefix=name) |
|
803 | ||
|
804 | ctx = webutil.changectx(web.repo, req) | |||
|
805 | archival.archive(web.repo, req, cnode, artype, prefix=name, | |||
|
806 | matchfn=scmutil.match(ctx, []), | |||
|
807 | subrepos=web.configbool("web", "archivesubrepos")) | |||
803 | return [] |
|
808 | return [] | |
804 |
|
809 | |||
805 |
|
810 |
General Comments 0
You need to be logged in to leave comments.
Login now