[PATCH] hgweb: add changeset description to annotate page

Brendan Cully brendan at kublai.com
Sat Oct 14 04:46:52 UTC 2006


# HG changeset patch
# User Brendan Cully <brendan at kublai.com>
# Date 1160801070 25200
# Node ID 463566d55dbf32bf6ae957e405eba45d04c30a98
# Parent  2065789f6a3ed64ff98f07efa370e02a86d6ce4f
hgweb: add changeset description to annotate page

diff -r 2065789f6a3e -r 463566d55dbf mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Fri Oct 13 15:34:35 2006 -0300
+++ b/mercurial/hgweb/hgweb_mod.py	Fri Oct 13 21:44:30 2006 -0700
@@ -393,6 +393,7 @@ class hgweb(object):
                      node=hex(fctx.node()),
                      author=fctx.user(),
                      date=fctx.date(),
+                     desc=fctx.description(),
                      rename=self.renamelink(fl, n),
                      parent=self.siblings(fctx.parents(), file=f),
                      child=self.siblings(fctx.children(), file=f),
diff -r 2065789f6a3e -r 463566d55dbf templates/fileannotate.tmpl
--- a/templates/fileannotate.tmpl	Fri Oct 13 15:34:35 2006 -0300
+++ b/templates/fileannotate.tmpl	Fri Oct 13 21:44:30 2006 -0700
@@ -32,6 +32,10 @@
 <tr>
  <td class="metatag">permissions:</td>
  <td>#permissions|permissions#</td></tr>
+<tr>
+  <td class="metatag">description:</td>
+  <td>{desc|strip|escape|addbreaks}</td>
+</tr>
 </table>
 
 <br/>
diff -r 2065789f6a3e -r 463566d55dbf templates/gitweb/fileannotate.tmpl
--- a/templates/gitweb/fileannotate.tmpl	Fri Oct 13 15:34:35 2006 -0300
+++ b/templates/gitweb/fileannotate.tmpl	Fri Oct 13 21:44:30 2006 -0700
@@ -44,6 +44,10 @@ annotate |
 <tr>
  <td class="metatag">permissions:</td>
  <td>#permissions|permissions#</td></tr>
+<tr>
+  <td class="metatag">description:</td>
+  <td>{desc|strip|escape|addbreaks}</td>
+</tr>
 </table>
 
 <div class="page_body">



More information about the Mercurial-devel mailing list