mercurial/templates/monoblue/shortlog.tmpl
author Joerg Sonnenberger <joerg@bec.de>
Tue, 11 Jun 2024 18:47:50 +0200
changeset 51644 f28c52a9f7b4
parent 35654 59c842a3d1e1
permissions -rw-r--r--
exchange: improve computation of relevant markers for large repos Find the candidates for nodes with relevant markers by going over all markers instead of iterating over all nodes. Most nodes will not have markers anyway. Further optimize the code by allowing revsets as well, which reduces the materialization cost.

{header}
    <title>{repo|escape}: shortlog</title>
    <link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/>
    <link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/>
</head>

<body>
<div id="container">
    <div class="page-header">
        <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / shortlog</h1>

        {searchform}

        <ul class="page-nav">
            <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li>
            <li class="current">shortlog</li>
            <li><a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a></li>
            <li><a href="{url|urlescape}graph/{symrev}{sessionvars%urlparameter}">graph</a></li>
            <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li>
            <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
            <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li>
            <li><a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a></li>
            {archives%archiveentry}
            <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
        </ul>
    </div>

    <h2 class="no-link no-border">shortlog</h2>

    <table class="shortlogtable">
{entries%shortlogentry}
    </table>

    <div class="page-path">
    {changenav%navshort}
    </div>

    <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
    ajaxScrollInit(
            '{url|urlescape}shortlog/%next%{sessionvars%urlparameter}',
            '{nextentry%"{node}"}', <!-- NEXTHASH
            function (htmlText) \{
                var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
                return m ? m[1] : null;
            },
            '.shortlogtable > tbody:nth-of-type(1)',
            '<tr class="%class%">\
            <td colspan="4" style="text-align: center;">%text%</td>\
            </tr>'
    );
    </script>

{footer}