hgweb: Changed file revision page to list format syntax
authorJosef "Jeff" Sipek <jeffpc@optonline.net>
Wed, 17 Aug 2005 22:08:15 -0500
changeset 978 ea67e5b37043
parent 977 289975641886
child 979 87d40e085e08
hgweb: Changed file revision page to list format syntax
mercurial/hgweb.py
templates/filelog.tmpl
--- a/mercurial/hgweb.py	Wed Aug 17 22:03:28 2005 -0500
+++ b/mercurial/hgweb.py	Wed Aug 17 22:08:15 2005 -0500
@@ -398,20 +398,19 @@
                 cs = cl.read(cl.node(lr))
                 t = float(cs[2].split(' ')[0])
 
-                l.insert(0, self.t("filelogentry",
-                                   parity = parity,
-                                   filenode = hex(n),
-                                   filerev = i,
-                                   file = f,
-                                   node = hex(cn),
-                                   author = cs[1],
-                                   date = t,
-                                   parent = self.parents("filelogparent",
+                l.insert(0, {"parity": parity,
+                             "filenode": hex(n),
+                             "filerev": i,
+                             "file": f,
+                             "node": hex(cn),
+                             "author": cs[1],
+                             "date": t,
+                             "parent": self.parents("filelogparent",
                                        fl.parents(n), fl.rev, file=f),
-                                   desc = cs[4]))
+                             "desc": cs[4]})
                 parity = 1 - parity
 
-            yield l
+            for e in l: yield e
 
         yield self.t("filelog",
                      file = f,
--- a/templates/filelog.tmpl	Wed Aug 17 22:03:28 2005 -0500
+++ b/templates/filelog.tmpl	Wed Aug 17 22:08:15 2005 -0500
@@ -16,6 +16,6 @@
 
 <h2>#file# revision history</h2>
 
-#entries#
+#entries%filelogentry#
 
 #footer#