comparison mercurial/hgweb/protocol.py @ 6630:8542fac26f63

hgweb: correctly validate permissions with streamclone pulling
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 26 May 2008 14:20:26 +0200
parents e29557d687c9
children d3147b4e3e8a
comparison
equal deleted inserted replaced
6629:1afb186d2934 6630:8542fac26f63
222 finally: 222 finally:
223 fp.close() 223 fp.close()
224 os.unlink(tempname) 224 os.unlink(tempname)
225 225
226 def stream_out(web, req): 226 def stream_out(web, req):
227 if not web.allowpull:
228 return
227 req.respond(HTTP_OK, HGTYPE) 229 req.respond(HTTP_OK, HGTYPE)
228 streamclone.stream_out(web.repo, req, untrusted=True) 230 streamclone.stream_out(web.repo, req, untrusted=True)