equal
deleted
inserted
replaced
24 |
24 |
25 def lookup(repo, req): |
25 def lookup(repo, req): |
26 try: |
26 try: |
27 r = hex(repo.lookup(req.form['key'][0])) |
27 r = hex(repo.lookup(req.form['key'][0])) |
28 success = 1 |
28 success = 1 |
29 except Exception,inst: |
29 except Exception, inst: |
30 r = str(inst) |
30 r = str(inst) |
31 success = 0 |
31 success = 0 |
32 resp = "%s %s\n" % (success, r) |
32 resp = "%s %s\n" % (success, r) |
33 req.respond(HTTP_OK, HGTYPE, length=len(resp)) |
33 req.respond(HTTP_OK, HGTYPE, length=len(resp)) |
34 yield resp |
34 yield resp |