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

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

Comments

Anton Shestakov - May 15, 2015, 11:53 p.m.
# HG changeset patch
# User Anton Shestakov <engored@ya.ru>
# Date 1431661329 -28800
#      Fri May 15 11:42:09 2015 +0800
# Node ID dc5b64fb0582bbd70cba8cc9edd1ec55f63a497b
# Parent  1ef96a3b8b89a896f2c9f3f977dbef8f45bb0e26
hgweb: show changeset branches/tags/bookmarks in file log (style=gitweb)

This line for filelogentry template is copied from shortlogentry. The
information is already displayed in paper style, so no change to python code is
needed. Tests are unaffected.

Patch

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