Mercurial > hg
view templates/shortlog.tmpl @ 6949:834f7e069cae
record: take diff lines for lack of trailing newlines into account (issue1282)
The record extension incorrectly re-calculated the size lines for unified
diff hunks. It counted a '\\ No newline at end of file\n' line towards the
number of lines of trailing context, while it's not actually part of the
context (and certainly isn't added as a line to the resulting output).
Use the local name of a variable that was access through the nonlocal scope
while we're at it. Seeing the variable was a little bewildering.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 31 Aug 2008 11:34:52 +0200 |
parents | 673d8a6bc709 |
children | 7f58dec6aeb7 |
line wrap: on
line source
#header# <title>#repo|escape#: shortlog</title> <link rel="alternate" type="application/atom+xml" href="#url#atom-log" title="Atom feed for #repo|escape#"> <link rel="alternate" type="application/rss+xml" href="#url#rss-log" title="RSS feed for #repo|escape#"> </head> <body> <div class="buttons"> <a href="#url#log/#rev#{sessionvars%urlparameter}">changelog</a> <a href="#url#tags{sessionvars%urlparameter}">tags</a> <a href="#url#file/#node|short#/{sessionvars%urlparameter}">files</a> #archives%archiveentry# <a type="application/rss+xml" href="#url#rss-log">rss</a> <a type="application/rss+xml" href="#url#atom-log" title="Atom feed for #repo|escape#">atom</a> </div> <h2>shortlog for #repo|escape#</h2> <form action="#url#log"> {sessionvars%hiddenformentry} <p> <label for="search1">search:</label> <input name="rev" id="search1" type="text" size="30"> navigate: <small class="navigate">#changenav%navshortentry#</small> </p> </form> #entries%shortlogentry# <form action="#url#log"> {sessionvars%hiddenformentry} <p> <label for="search2">search:</label> <input name="rev" id="search2" type="text" size="30"> navigate: <small class="navigate">#changenav%navshortentry#</small> </p> </form> #footer#