--- a/mercurial/wireproto.py Fri Jul 16 18:18:35 2010 +0200
+++ b/mercurial/wireproto.py Fri Jul 16 22:20:10 2010 +0200
@@ -173,13 +173,13 @@
def changegroup(repo, proto, roots):
nodes = decodelist(roots)
cg = repo.changegroup(nodes, 'serve')
- proto.sendchangegroup(cg)
+ proto.sendstream(proto.groupchunks(cg))
def changegroupsubset(repo, proto, bases, heads):
bases = decodelist(bases)
heads = decodelist(heads)
cg = repo.changegroupsubset(bases, heads, 'serve')
- proto.sendchangegroup(cg)
+ proto.sendstream(proto.groupchunks(cg))
def heads(repo, proto):
h = repo.heads()
@@ -215,10 +215,7 @@
return '%s\n' % int(r)
def stream(repo, proto):
- try:
- proto.sendstream(streamclone.stream_out(repo))
- except streamclone.StreamException, inst:
- return str(inst)
+ proto.sendstream(streamclone.stream_out(repo))
def unbundle(repo, proto, heads):
their_heads = decodelist(heads)