diff mercurial/templates/gitweb/map @ 37024:7c18798fc24d

hgweb: explain instabilities of unstable changesets (the rest of the themes)
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 20 Mar 2018 14:19:28 +0800
parents f3fd4fe0506f
children 47aea60d114d
line wrap: on
line diff
--- a/mercurial/templates/gitweb/map	Tue Mar 20 21:10:29 2018 -0400
+++ b/mercurial/templates/gitweb/map	Tue Mar 20 14:19:28 2018 +0800
@@ -282,6 +282,13 @@
     <td>obsolete</td>
     <td>{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}</td>
   </tr>'
+instabilitychangesetlink = '<a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
+divergentnode = '{instabilitychangesetlink} ({phase})'
+whyunstableentry = '
+  <tr>
+    <td>unstable</td>
+    <td>{instability}: {if(divergentnodes, divergentnodes%divergentnode)} {reason} {instabilitychangesetlink}</td>
+  </tr>'
 shortlogentry = '
   <tr class="parity{parity}">
     <td class="age"><i class="age">{date|rfc822date}</i></td>