hgweb: remove unneeded escaping in gitweb/map and monoblue/map
authorAnton Shestakov <engored@ya.ru>
Sat, 10 Jan 2015 19:43:07 +0800
changeset 24128 7ba4d53ed7d8
parent 24127 4cb8002658d6
child 24129 3fc86f1c39d8
hgweb: remove unneeded escaping in gitweb/map and monoblue/map Elements in map files work slightly different from regular python strings, so escaping single quotes is not necessary. It is also demonstrated by the very same lines: '(current diff)'. I should've made this in 9e1f4c65f5f5, but here we go.
mercurial/templates/gitweb/map
mercurial/templates/monoblue/map
--- a/mercurial/templates/gitweb/map	Wed Feb 11 13:59:13 2015 +0900
+++ b/mercurial/templates/gitweb/map	Sat Jan 10 19:43:07 2015 +0800
@@ -140,7 +140,7 @@
   <tr>
     <td>parent {rev}</td>
     <td style="font-family:monospace">
-      {changesetlink} {ifeq(node, basenode, '(current diff)', \'({difffrom})\')}
+      {changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}
     </td>
   </tr>'
 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
--- a/mercurial/templates/monoblue/map	Wed Feb 11 13:59:13 2015 +0900
+++ b/mercurial/templates/monoblue/map	Sat Jan 10 19:43:07 2015 +0800
@@ -129,7 +129,7 @@
   <dd>{changesetlink}</dd>'
 changesetparentdiff = '
   <dt>parent {rev}</dt>
-  <dd>{changesetlink} {ifeq(node, basenode, '(current diff)', \'({difffrom})\')}</dd>'
+  <dd>{changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}</dd>'
 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
 filerevbranch = '<dt>branch</dt><dd>{name|escape}</dd>'
 filerevparent = '