Patchwork [2,of,2] hgweb: show changeset branches/tags/bookmarks in file log (style=monoblue)

login
register
mail settings
Submitter Anton Shestakov
Date May 15, 2015, 11:53 p.m.
Message ID <55bf1f5b8d269445f7d0.1431734030@neuro>
Download mbox | patch
Permalink /patch/9110/
State Accepted
Headers show

Comments

Anton Shestakov - May 15, 2015, 11:53 p.m.
# HG changeset patch
# User Anton Shestakov <engored@ya.ru>
# Date 1431661959 -28800
#      Fri May 15 11:52:39 2015 +0800
# Node ID 55bf1f5b8d269445f7d06f7c1d02c0bff715c7ca
# Parent  dc5b64fb0582bbd70cba8cc9edd1ec55f63a497b
hgweb: show changeset branches/tags/bookmarks in file log (style=monoblue)

As for the gitweb style, this line for filelogentry template is copied from
shortlogentry. No change to python code is needed. Tests are unaffected.
Matt Mackall - May 18, 2015, 2:11 a.m.
On Sat, 2015-05-16 at 07:53 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <engored@ya.ru>
> # Date 1431661959 -28800
> #      Fri May 15 11:52:39 2015 +0800
> # Node ID 55bf1f5b8d269445f7d06f7c1d02c0bff715c7ca
> # Parent  dc5b64fb0582bbd70cba8cc9edd1ec55f63a497b
> hgweb: show changeset branches/tags/bookmarks in file log (style=monoblue)

These are queued for default, thanks.

Patch

diff --git a/mercurial/templates/monoblue/map b/mercurial/templates/monoblue/map
--- a/mercurial/templates/monoblue/map
+++ b/mercurial/templates/monoblue/map
@@ -247,6 +247,7 @@  filelogentry = '
     <td>
       <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
         {desc|strip|firstline|escape|nonempty}
+        <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>
       </a>
     </td>
     <td class="nowrap">