[PATCH 06 of 11] hgweb: get rid of branchentry template duplication

Alexander Plavin me at aplavin.ru
Sat Jul 13 10:38:12 CDT 2013


# HG changeset patch
# User Alexander Plavin <me at aplavin.ru>
# Date 1373723484 -14400
#      Sat Jul 13 17:51:24 2013 +0400
# Node ID 4c114146e26d37c1d56e311169603e370b712a4c
# Parent  b72d42843c77c34a74cc53e4f56ae45f5946eda7
hgweb: get rid of branchentry template duplication

diff -r b72d42843c77 -r 4c114146e26d mercurial/templates/paper/branches.tmpl
--- a/mercurial/templates/paper/branches.tmpl	Sat Jul 13 17:49:20 2013 +0400
+++ b/mercurial/templates/paper/branches.tmpl	Sat Jul 13 17:51:24 2013 +0400
@@ -47,18 +47,7 @@
  <th>branch</th>
  <th>node</th>
 </tr>
-{entries %
-' <tr class="tagEntry parity{parity}">
-    <td>
-      <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">
-        {branch|escape}
-      </a>
-    </td>
-    <td class="node">
-      {node|short}
-    </td>
-  </tr>'
-}
+{entries % branchentry}
 </table>
 </div>
 </div>


More information about the Mercurial-devel mailing list