diff mercurial/hgweb/protocol.py @ 11585:5d907fbb9703

protocol: unify stream_out command
author Matt Mackall <mpm@selenic.com>
date Wed, 14 Jul 2010 16:19:27 -0500
parents 1af96b090116
children d054cc5c7737
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py	Wed Jul 14 15:43:20 2010 -0500
+++ b/mercurial/hgweb/protocol.py	Wed Jul 14 16:19:27 2010 -0500
@@ -114,11 +114,3 @@
     finally:
         fp.close()
         os.unlink(tempname)
-
-def stream_out(repo, req):
-    req.respond(HTTP_OK, HGTYPE)
-    try:
-        for chunk in streamclone.stream_out(repo):
-            yield chunk
-    except streamclone.StreamException, inst:
-        yield str(inst)