# # # add_file "revision.psp" # content [9d90c20f2b587e81348902ac7891378758588b93] # # patch "branch.psp" # from [153bc5ce2fd356eb91d3fda58695a875d6726d93] # to [a7d9fdaea138ee6ff579414103bc3b4cf5fd30d3] # ============================================================ --- revision.psp 9d90c20f2b587e81348902ac7891378758588b93 +++ revision.psp 9d90c20f2b587e81348902ac7891378758588b93 @@ -0,0 +1,56 @@ +<% + +import config +import monotone +import common +import urllib +import template +from template import header,footer +from monotone import Monotone + +reload(common) +reload(template) +reload(monotone) + +# +# revision.psp +# display all information we can about a particular revision +# + +psp.set_error_page("error.psp") + +if not form.has_key('id'): + raise Exception("No ID specified.") +id = form['id'] + +mt = Monotone(config.monotone, config.dbfile) + +hq = common.html_escape() +info = {'title' : "ID %s" % (hq(id))} +req.write(header(info)) + +%> + +

Certificates

+ + + +<% +certs = mt.certs(id) +for cert in certs: +%> + + + + + +<% + +%> +
Signed byNameValue
<%="%s (%s)" % (hq(cert.get('Key', '')), hq(cert.get('Sig', '')))%><%=hq(cert.get("Name", ''))%><%=hq(cert.get("Value", ''))%>
+ +<% +req.write(footer(info)) + +%> + ============================================================ --- branch.psp 153bc5ce2fd356eb91d3fda58695a875d6726d93 +++ branch.psp a7d9fdaea138ee6ff579414103bc3b4cf5fd30d3 @@ -24,7 +24,7 @@ # # if more than one HEAD exists, prompt the user # and allow them to choose which one to view -# otherwise, redirect to id.psp and show that +# otherwise, redirect to revision.psp and show that # ID. mt = Monotone(config.monotone, config.dbfile) @@ -35,7 +35,7 @@ elif len(heads) == 1: # a single head ID; redirect to it id = heads[0] - psp.redirect("id.psp?id=%s" % (urllib.quote(id))) + psp.redirect("revision.psp?id=%s" % (urllib.quote(id))) else: hq = common.html_escape() info = {'title' : "Branch details for %s" % (hq(branch))} @@ -46,6 +46,6 @@

<% for id in heads: - req.write('%s
' % (urllib.quote(id), hq(id))) + req.write('%s
' % (urllib.quote(id), hq(id))) %>