Show More
@@ -1177,4 +1177,4 b' class hgweb(object):' | |||||
1177 |
|
1177 | |||
1178 | def do_stream_out(self, req): |
|
1178 | def do_stream_out(self, req): | |
1179 | req.httphdr("application/mercurial-0.1") |
|
1179 | req.httphdr("application/mercurial-0.1") | |
1180 | streamclone.stream_out(self.repo, req) |
|
1180 | streamclone.stream_out(self.repo, req, untrusted=True) |
@@ -56,11 +56,11 b' def walkrepo(root):' | |||||
56 | # |
|
56 | # | |
57 | # server writes out raw file data. |
|
57 | # server writes out raw file data. | |
58 |
|
58 | |||
59 | def stream_out(repo, fileobj): |
|
59 | def stream_out(repo, fileobj, untrusted=False): | |
60 | '''stream out all metadata files in repository. |
|
60 | '''stream out all metadata files in repository. | |
61 | writes to file-like object, must support write() and optional flush().''' |
|
61 | writes to file-like object, must support write() and optional flush().''' | |
62 |
|
62 | |||
63 | if not repo.ui.configbool('server', 'uncompressed'): |
|
63 | if not repo.ui.configbool('server', 'uncompressed', untrusted=untrusted): | |
64 | fileobj.write('1\n') |
|
64 | fileobj.write('1\n') | |
65 | return |
|
65 | return | |
66 |
|
66 |
General Comments 0
You need to be logged in to leave comments.
Login now