#
#
# patch "index.psp"
# from [9c84eaaaa428a2ab700152993e3e12bb12cd2fa0]
# to [2ccf95edb24824d8b6c03ccad51bd981507348b7]
#
============================================================
--- index.psp 9c84eaaaa428a2ab700152993e3e12bb12cd2fa0
+++ index.psp 2ccf95edb24824d8b6c03ccad51bd981507348b7
@@ -40,25 +40,29 @@
-Branch | Last update |
+Branch |
<%
- now = datetime.datetime.utcnow()
+# now = datetime.datetime.utcnow()
branches.sort()
for branch in branches:
- heads = mt.heads(branch)
- most_recent_change = None
- for head in heads:
- certs = mt.certs(head)
- this_change = determine_date(certs)
- if this_change == None:
- continue
- if most_recent_change == None or this_change > most_recent_change:
- most_recent_change = this_change
- if most_recent_change != None:
- ago = ago_string(most_recent_change, now) + ' ago'
- else:
- ago = ''
- req.write('%s | %s |
' % (link("branch", branch, branch), hq(ago)))
+# RATS! mt.heads() requires running
+# an actual monotone process. which is just too
+# slow.
+#
+# heads = mt.heads(branch)
+# most_recent_change = None
+# for head in heads:
+# certs = mt.certs(head)
+# this_change = determine_date(certs)
+# if this_change == None:
+# continue
+# if most_recent_change == None or this_change > most_recent_change:
+# most_recent_change = this_change
+# if most_recent_change != None:
+# ago = ago_string(most_recent_change, now) + ' ago'
+# else:
+# ago = ''
+ req.write('%s |
' % (link("branch", branch, branch)))
%>