templates/gitweb/fileannotate.tmpl
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 10 Oct 2006 18:43:20 -0300
changeset 3349 25d270e0b27f
parent 3271 36fa5db79dd5
child 3353 2edf53386d86
permissions -rw-r--r--
ui.py: untangle updateopts The code in ui.updateopts that handles ui.quiet, ui.verbose and ui.debugflag is too smart, making it somewhat hard to see what are the exact constraints placed on the values of these variables, hiding some buglets. This patch makes these constraints more explicit, fixing these buglets and changing the behaviour slightly. It also adds a test to make sure things work as expected in the future. The buglets: - setting ui.debug = True in a hgrc wouldn't turn on verbose mode - additionally, setting ui.quiet = True or using --quiet would give you a "quiet debug" mode. The behaviour change: - previously, in a hgrc file, ui.quiet wins against ui.verbose (i.e. the final result would be quiet mode), but --verbose wins against --quiet - now ui.quiet nullifies ui.verbose and --verbose nullifies --quiet. As a consequence, using -qv always gives you normal mode (unless debug mode was turned on somewhere)

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

<div class="page_header">
<a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="{url}summary{getentries}">#repo|escape#</a> / annotate
</div>

<div class="page_nav">
<a href="{url}summary{getentries}">summary</a> |
<a href="{url}shortlog{getentries}">shortlog</a> |
<a href="{url}log{getentries}">changelog</a> |
<a href="{url}tags{getentries}">tags</a> |
<a href="{url}file/#node|short##path|urlescape#{getentries}">manifest</a> |
<a href="{url}rev/#node|short#{getentries}">changeset</a> |
<a href="{url}file/{node|short}/#file|urlescape#{getentries}">file</a> |
<a href="{url}log/{node|short}/#file|urlescape#{getentries}">revisions</a> |
annotate | <a href="{url}raw-annotate/{node|short}/#file|urlescape#">raw</a><br/>
</div>

<div class="title">#file|escape#</div>

<table>
<tr>
 <td class="metatag">changeset #rev#:</td>
 <td><a href="{url}rev/#node|short#{getentries}">#node|short#</a></td></tr>
#rename%filerename#
#parent%fileannotateparent#
#child%fileannotatechild#
<tr>
 <td class="metatag">manifest:</td>
 <td><a href="{url}file/#node|short#{getentries}">#node|short#</a></td></tr>
<tr>
 <td class="metatag">author:</td>
 <td>#author|obfuscate#</td></tr>
<tr>
 <td class="metatag">date:</td>
 <td>#date|date# (#date|age# ago)</td></tr>
<tr>
 <td class="metatag">permissions:</td>
 <td>#permissions|permissions#</td></tr>
</table>

<div class="page_body">
<table>
#annotate%annotateline#
</table>
</div>

#footer#