[PATCH] hgweb: get rid of branchentry template duplication

Alexander Plavin me at aplavin.ru
Wed Jul 17 14:24:42 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 93b219276e0ed4f43eba87cd801f971e5200ce83
# Parent  9647be8f7af26a0cbf15078207fa8870aebc9ad4
hgweb: get rid of branchentry template duplication

diff -r 9647be8f7af2 -r 93b219276e0e 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