mercurial/hgweb/protocol.py
changeset 11585 5d907fbb9703
parent 11584 1af96b090116
child 11593 d054cc5c7737
equal deleted inserted replaced
11584:1af96b090116 11585:5d907fbb9703
   112                 text = error.replace(repo.root + os.path.sep, '')
   112                 text = error.replace(repo.root + os.path.sep, '')
   113             raise ErrorResponse(code, text)
   113             raise ErrorResponse(code, text)
   114     finally:
   114     finally:
   115         fp.close()
   115         fp.close()
   116         os.unlink(tempname)
   116         os.unlink(tempname)
   117 
       
   118 def stream_out(repo, req):
       
   119     req.respond(HTTP_OK, HGTYPE)
       
   120     try:
       
   121         for chunk in streamclone.stream_out(repo):
       
   122             yield chunk
       
   123     except streamclone.StreamException, inst:
       
   124         yield str(inst)