Mercurial > hg
view mercurial/templates/spartan/branches.tmpl @ 31665:5e6d44511317
hgweb: handle a "linerange" request parameter in filelog command
We now handle a "linerange" URL query parameter to filter filelog using
a logic similar to followlines() revset.
The URL syntax is: log/<rev>/<file>?linerange=<fromline>:<toline>
As a result, filelog entries only consists of revision changing specified
line range.
The linerange information is propagated to "more"/"less" navigation links but
not to numeric navigation links as this would apparently require a dedicated
"revnav" class.
Only update the "paper" template in this patch.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 19 Jan 2017 17:41:00 +0100 |
parents | 32f76eccbced |
children |
line wrap: on
line source
{header} <title>{repo|escape}: branches</title> <link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-branches" title="Atom feed for {repo|escape}: branches"> <link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-branches" title="RSS feed for {repo|escape}: branches"> </head> <body> <div class="buttons"> <a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a> <a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a> <a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a> <a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> <a href="{url|urlescape}file{sessionvars%urlparameter}">files</a> <a href="{url|urlescape}help{sessionvars%urlparameter}">help</a> <a type="application/rss+xml" href="{url|urlescape}rss-branches">rss</a> <a type="application/atom+xml" href="{url|urlescape}atom-branches">atom</a> </div> <h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / branches</h2> <ul id="tagEntries"> {entries%branchentry} </ul> {footer}