Mercurial > hg
view mercurial/templates/spartan/changelogentry.tmpl @ 23130:ced632394371 stable 3.2
setdiscovery: limit the size of all sample (issue4411)
Further digging on this issue show that the limit on the sample size used in
discovery never works for heads. Here is a quote from the code itself:
desiredlen = size - len(always)
if desiredlen <= 0:
# This could be bad if there are very many heads, all unknown to the
# server. We're counting on long request support here.
The long request support never landed and evolution make the "very many heads,
all unknown to the server" case quite common.
We implement a simple and stupid hard limit of sample size for all query. This
should prevent HTTP 414 error with the current state of the code.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sat, 01 Nov 2014 23:52:53 +0000 |
parents | a65714215377 |
children | a1de4ffaa7a8 |
line wrap: on
line source
<table class="logEntry parity{parity}"> <tr> <th class="label"><span class="age">{date|rfc822date}</span>:</th> <th class="firstline">{desc|strip|firstline|escape|nonempty}</th> </tr> <tr> <th class="revision">changeset {rev}:</th> <td class="node"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td> </tr> {parent%changelogparent} {child%changelogchild} {changelogtag} <tr> <th class="author">author:</th> <td class="author">{author|obfuscate}</td> </tr> <tr> <th class="date">date:</th> <td class="date">{date|rfc822date}</td> </tr> <tr> <th class="files"><a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>:</th> <td class="files">{files}</td> </tr> </table>