##// END OF EJS Templates
hgweb: use string join instead of slower cStringIO
Sune Foldager -
r10531:e3eff765 stable
parent child Browse files
Show More
@@ -64,10 +64,7 b' def branches(repo, req):'
64 def between(repo, req):
64 def between(repo, req):
65 pairs = [map(bin, p.split("-"))
65 pairs = [map(bin, p.split("-"))
66 for p in req.form['pairs'][0].split(" ")]
66 for p in req.form['pairs'][0].split(" ")]
67 resp = cStringIO.StringIO()
67 resp = ''.join(" ".join(map(hex, b)) + "\n" for b in repo.between(pairs))
68 for b in repo.between(pairs):
69 resp.write(" ".join(map(hex, b)) + "\n")
70 resp = resp.getvalue()
71 req.respond(HTTP_OK, HGTYPE, length=len(resp))
68 req.respond(HTTP_OK, HGTYPE, length=len(resp))
72 yield resp
69 yield resp
73
70
General Comments 0
You need to be logged in to leave comments. Login now