mercurial/hgweb/protocol.py
changeset 9198 061eeb602354
parent 8846 b30775386d40
child 9694 8269fe2d48f6
equal deleted inserted replaced
9197:a05aa192a00a 9198:061eeb602354
    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