[PATCH 1 of 2] hgweb: show changeset branches/tags/bookmarks in file log (style=gitweb)
Anton Shestakov
engored at ya.ru
Fri May 15 23:53:49 UTC 2015
# HG changeset patch
# User Anton Shestakov <engored at 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.
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">
More information about the Mercurial-devel
mailing list