[PATCH] hgweb (coal/paper): display tags and branch in filelog page

Benoit Allard benoit.allard at gmx.de
Mon Nov 24 17:37:30 CST 2008


# HG changeset patch
# User Benoit Allard <benoit at aeteurope.nl>
# Date 1227569817 -3600
# Node ID 1d167f697a3555e621248196636047242708239d
# Parent  436a0ef04b027318969a51d5a40d70b889682e7d
hgweb (coal/paper): display tags and branch in filelog page

diff -r 436a0ef04b02 -r 1d167f697a35 mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Mon Nov 24 19:43:00 2008 +0100
+++ b/mercurial/hgweb/webcommands.py	Tue Nov 25 00:36:57 2008 +0100
@@ -555,8 +555,12 @@
                          "rename": webutil.renamelink(fctx),
                          "parent": webutil.siblings(fctx.parents()),
                          "child": webutil.siblings(fctx.children()),
-                         "desc": ctx.description()})
-
+                         "desc": ctx.description(),
+                         "tags": webutil.nodetagsdict(web.repo, ctx.node()),
+                         "branch": webutil.nodebranchnodefault(ctx),
+                         "inbranch": webutil.nodeinbranch(web.repo, ctx),
+                         "branches": webutil.nodebranchdict(web.repo, ctx),})
+                     
         if limit > 0:
             l = l[:limit]
 
diff -r 436a0ef04b02 -r 1d167f697a35 templates/coal/filelogentry.tmpl
--- a/templates/coal/filelogentry.tmpl	Mon Nov 24 19:43:00 2008 +0100
+++ b/templates/coal/filelogentry.tmpl	Tue Nov 25 00:36:57 2008 +0100
@@ -1,5 +1,5 @@
  <tr class="parity{parity}">
   <td class="age">{date|age}</td>
   <td class="author">{author|person}</td>
-  <td class="description"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape}</a></td>
+  <td class="description"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape}</a>{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}</td>
  </tr>


More information about the Mercurial-devel mailing list