comparison tests/test-hgweb-commands.t @ 35065:a1de4ffaa7a8

hgweb: show commit phase if it's not public In spartan theme phase is shown on its own table row, because there's no single line of "tags". Everywhere else phase is prepended to the list of "tags" of a changeset. Its element has a purple-ish color in gitweb and monoblue, and a dotted line under it and no color in paper and coal (as these themes are frugal with colors). This patch intentionally doesn't touch graph, because it needs a rewrite. I'll get to it pretty soon and in the process will add phase and everything that's still coming (e.g. obsolescence and instabilities). .. feature:: hgweb now displays phases of non-public changesets
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 16 Nov 2017 22:21:03 +0800
parents 9acc0360ff67
children 62e10bf001a9
comparison
equal deleted inserted replaced
35064:9acc0360ff67 35065:a1de4ffaa7a8
773 <tr> 773 <tr>
774 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> 774 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
775 <td class="author">test</td> 775 <td class="author">test</td>
776 <td class="description"> 776 <td class="description">
777 <a href="/rev/cad8025a2e87">branch commit with null character: </a> 777 <a href="/rev/cad8025a2e87">branch commit with null character: </a>
778 <span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span> 778 <span class="phase">draft</span> <span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span>
779 </td> 779 </td>
780 </tr> 780 </tr>
781 <tr> 781 <tr>
782 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> 782 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
783 <td class="author">test</td> 783 <td class="author">test</td>
784 <td class="description"> 784 <td class="description">
785 <a href="/rev/1d22e65f027e">branch</a> 785 <a href="/rev/1d22e65f027e">branch</a>
786 <span class="branchhead">stable</span> 786 <span class="phase">draft</span> <span class="branchhead">stable</span>
787 </td> 787 </td>
788 </tr> 788 </tr>
789 <tr> 789 <tr>
790 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> 790 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
791 <td class="author">test</td> 791 <td class="author">test</td>
792 <td class="description"> 792 <td class="description">
793 <a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a> 793 <a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a>
794 <span class="branchhead">default</span> 794 <span class="phase">draft</span> <span class="branchhead">default</span>
795 </td> 795 </td>
796 </tr> 796 </tr>
797 <tr> 797 <tr>
798 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> 798 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
799 <td class="author">test</td> 799 <td class="author">test</td>
800 <td class="description"> 800 <td class="description">
801 <a href="/rev/2ef0ac749a14">base</a> 801 <a href="/rev/2ef0ac749a14">base</a>
802 <span class="tag">1.0</span> <span class="tag">anotherthing</span> 802 <span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
803 </td> 803 </td>
804 </tr> 804 </tr>
805 805
806 </tbody> 806 </tbody>
807 </table> 807 </table>
878 <div class="main"> 878 <div class="main">
879 879
880 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 880 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
881 <h3> 881 <h3>
882 changeset 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a> 882 changeset 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a>
883 <span class="tag">1.0</span> <span class="tag">anotherthing</span> 883 <span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
884 </h3> 884 </h3>
885 885
886 886
887 <form class="search" action="/log"> 887 <form class="search" action="/log">
888 888
1052 <tr> 1052 <tr>
1053 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> 1053 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
1054 <td class="author">test</td> 1054 <td class="author">test</td>
1055 <td class="description"> 1055 <td class="description">
1056 <a href="/rev/2ef0ac749a14">base</a> 1056 <a href="/rev/2ef0ac749a14">base</a>
1057 <span class="tag">1.0</span> <span class="tag">anotherthing</span> 1057 <span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
1058 </td> 1058 </td>
1059 </tr> 1059 </tr>
1060 1060
1061 </tbody> 1061 </tbody>
1062 </table> 1062 </table>
1310 1310
1311 <div class="main"> 1311 <div class="main">
1312 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 1312 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1313 <h3> 1313 <h3>
1314 view foo @ 1:<a href="/rev/a4f92ed23982">a4f92ed23982</a> 1314 view foo @ 1:<a href="/rev/a4f92ed23982">a4f92ed23982</a>
1315 <span class="branchhead">default</span> 1315 <span class="phase">draft</span> <span class="branchhead">default</span>
1316 </h3> 1316 </h3>
1317 1317
1318 1318
1319 <form class="search" action="/log"> 1319 <form class="search" action="/log">
1320 1320
1444 1444
1445 <div class="main"> 1445 <div class="main">
1446 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 1446 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1447 <h3> 1447 <h3>
1448 view foo @ 2:<a href="/rev/1d22e65f027e">1d22e65f027e</a> 1448 view foo @ 2:<a href="/rev/1d22e65f027e">1d22e65f027e</a>
1449 <span class="branchhead">stable</span> 1449 <span class="phase">draft</span> <span class="branchhead">stable</span>
1450 </h3> 1450 </h3>
1451 1451
1452 1452
1453 <form class="search" action="/log"> 1453 <form class="search" action="/log">
1454 1454
1582 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> 1582 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1583 <td><i>test</i></td> 1583 <td><i>test</i></td>
1584 <td> 1584 <td>
1585 <a class="list" href="/rev/cad8025a2e87?style=gitweb"> 1585 <a class="list" href="/rev/cad8025a2e87?style=gitweb">
1586 <b>branch commit with null character: </b> 1586 <b>branch commit with null character: </b>
1587 <span class="logtags"><span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span> 1587 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span>
1588 </a> 1588 </a>
1589 </td> 1589 </td>
1590 <td class="link" nowrap> 1590 <td class="link" nowrap>
1591 <a href="/rev/cad8025a2e87?style=gitweb">changeset</a> | 1591 <a href="/rev/cad8025a2e87?style=gitweb">changeset</a> |
1592 <a href="/file/cad8025a2e87?style=gitweb">files</a> 1592 <a href="/file/cad8025a2e87?style=gitweb">files</a>
1596 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> 1596 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1597 <td><i>test</i></td> 1597 <td><i>test</i></td>
1598 <td> 1598 <td>
1599 <a class="list" href="/rev/1d22e65f027e?style=gitweb"> 1599 <a class="list" href="/rev/1d22e65f027e?style=gitweb">
1600 <b>branch</b> 1600 <b>branch</b>
1601 <span class="logtags"><span class="branchtag" title="stable">stable</span> </span> 1601 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="stable">stable</span> </span>
1602 </a> 1602 </a>
1603 </td> 1603 </td>
1604 <td class="link" nowrap> 1604 <td class="link" nowrap>
1605 <a href="/rev/1d22e65f027e?style=gitweb">changeset</a> | 1605 <a href="/rev/1d22e65f027e?style=gitweb">changeset</a> |
1606 <a href="/file/1d22e65f027e?style=gitweb">files</a> 1606 <a href="/file/1d22e65f027e?style=gitweb">files</a>
1610 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> 1610 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1611 <td><i>test</i></td> 1611 <td><i>test</i></td>
1612 <td> 1612 <td>
1613 <a class="list" href="/rev/a4f92ed23982?style=gitweb"> 1613 <a class="list" href="/rev/a4f92ed23982?style=gitweb">
1614 <b>Added tag 1.0 for changeset 2ef0ac749a14</b> 1614 <b>Added tag 1.0 for changeset 2ef0ac749a14</b>
1615 <span class="logtags"><span class="branchtag" title="default">default</span> </span> 1615 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> </span>
1616 </a> 1616 </a>
1617 </td> 1617 </td>
1618 <td class="link" nowrap> 1618 <td class="link" nowrap>
1619 <a href="/rev/a4f92ed23982?style=gitweb">changeset</a> | 1619 <a href="/rev/a4f92ed23982?style=gitweb">changeset</a> |
1620 <a href="/file/a4f92ed23982?style=gitweb">files</a> 1620 <a href="/file/a4f92ed23982?style=gitweb">files</a>
1624 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> 1624 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1625 <td><i>test</i></td> 1625 <td><i>test</i></td>
1626 <td> 1626 <td>
1627 <a class="list" href="/rev/2ef0ac749a14?style=gitweb"> 1627 <a class="list" href="/rev/2ef0ac749a14?style=gitweb">
1628 <b>base</b> 1628 <b>base</b>
1629 <span class="logtags"><span class="tagtag" title="1.0">1.0</span> <span class="bookmarktag" title="anotherthing">anotherthing</span> </span> 1629 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="tagtag" title="1.0">1.0</span> <span class="bookmarktag" title="anotherthing">anotherthing</span> </span>
1630 </a> 1630 </a>
1631 </td> 1631 </td>
1632 <td class="link" nowrap> 1632 <td class="link" nowrap>
1633 <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> | 1633 <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
1634 <a href="/file/2ef0ac749a14?style=gitweb">files</a> 1634 <a href="/file/2ef0ac749a14?style=gitweb">files</a>