2005-11-15 07:56:12 +03:00
|
|
|
<html>
|
|
|
|
<head>
|
2011-10-21 18:47:02 +04:00
|
|
|
<title>ViewVC 1.2 Template Authoring Guide</title>
|
2005-11-15 07:56:12 +03:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: rgb(180,193,205);
|
|
|
|
color: black;
|
|
|
|
font-family: sans-serif;
|
|
|
|
}
|
|
|
|
table { margin-left: 1em; }
|
|
|
|
td, th { padding: 0 0.5em; }
|
2006-03-27 23:31:35 +04:00
|
|
|
th {
|
|
|
|
vertical-align: bottom;
|
|
|
|
background: rgb(60%,70%,90%);
|
|
|
|
}
|
|
|
|
td {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
2005-11-15 07:56:12 +03:00
|
|
|
.h2, .h3 {
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
border-color: black;
|
|
|
|
border-style: solid;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
.h2 { border-width: 1px 2px 2px 1px; }
|
|
|
|
.h3 { border-width: 1px 0 0 0; }
|
|
|
|
.include { background: rgb(55%,80%,55%); font-style: italic; }
|
|
|
|
.varlevel1 { background: rgb(65%,85%,65%); }
|
|
|
|
.varlevel2 { background: rgb(70%,90%,70%); }
|
|
|
|
.varlevel3 { background: rgb(75%,95%,75%); }
|
2011-10-25 00:05:37 +04:00
|
|
|
.varlevel4 { background: rgb(80%,100%,80%); }
|
|
|
|
.varlevel5 { background: rgb(85%,100%,85%); }
|
2005-11-15 07:56:12 +03:00
|
|
|
.varname { font-family: monospace; }
|
|
|
|
.varlevel1 .varname { padding-left: 0; }
|
|
|
|
.varlevel2 .varname { padding-left: 2em; }
|
|
|
|
.varlevel3 .varname { padding-left: 4em; }
|
2011-10-25 00:05:37 +04:00
|
|
|
.varlevel4 .varname { padding-left: 6em; }
|
|
|
|
.varlevel5 .varname { padding-left: 8em; }
|
2005-11-15 07:56:12 +03:00
|
|
|
.toc-list { font-size: 90%; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2011-10-21 18:47:02 +04:00
|
|
|
<h1>ViewVC 1.2 Template Authoring Guide</h1>
|
2005-11-15 07:56:12 +03:00
|
|
|
|
|
|
|
<div class="h2">
|
|
|
|
<h2 id="introduction">Introduction</h2>
|
|
|
|
|
2006-03-27 23:31:35 +04:00
|
|
|
<p>This document represents an (unfinished) attempt at providing
|
2011-10-21 18:47:02 +04:00
|
|
|
instructions for how to customize ViewVC's HTML output via
|
2006-03-27 23:31:35 +04:00
|
|
|
modification of its templates.</p>
|
2005-11-15 07:56:12 +03:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h2">
|
|
|
|
<h2 id="toc">Table of Contents</h2>
|
|
|
|
<ul class="toc-list">
|
|
|
|
<li><a href="#introduction">Introduction</a></li>
|
|
|
|
<li><a href="#ezt">Using EZT</a></li>
|
2006-03-18 03:33:54 +03:00
|
|
|
<li><a href="#variables">Variables Available to ViewVC Templates</a></li>
|
2005-11-15 07:56:12 +03:00
|
|
|
<ul class="toc-list">
|
|
|
|
<li><a href="#variables-common">Common Template Variable Set (COMMON)</a></li>
|
|
|
|
<li><a href="#variables-pathrev">Path Revision Form Variable Set (PATHREV)</a></li>
|
2005-12-08 21:18:08 +03:00
|
|
|
<li><a href="#variables-paging">Paging Form Variable Set (PAGING)</a></li>
|
2008-04-10 00:14:33 +04:00
|
|
|
<li><a href="#variables-properties">Property Listing Variable Set (PROPERTIES)</a></li>
|
Merge the work done on the 'merged-file-views' branch in full. For
the details of those changes, run:
svn log --stop-on-copy --verbose \
http://viewvc.tigris.org/svn/viewvc/branches/merged-file-views@1917
Basically, this change unifies the annotate and markup views at the
cost of dropping support for all but one of our syntax highlighting
engines -- Pygments. (So, goodbye to 'enscript', 'highlight',
'source-highlight', 'py2html', and 'php'.) By settling on a single
markup engine (and a Python-module-based one with a BSD license, at
that), we:
* added syntax highlighting to the annotate view
* added line numbers to the markup view (prior to this, you
sometimes had 'em and sometimes didn't, depending on which
highlighting engine you used).
* essentially unified the markup and annotate views -- they even
share the same template now.
* can ship ViewVC with Pygments and syntax highighting enabled so
folks don't have to do additional config work to get that feature.
This change may be controversial. Depending on the overlap of
supported syntaxes across the various engines we supported prior to
this change, we may be losing support for some languages. And we're
also losing URL markup-ing (which was, again, partially supported
depending on the markup engine you were using). Somebody is going to
get upset that their pet benefit is now missing. I understand that.
I'm optimistic, though, that we can identify the lossages that really,
really matter, and address them in low-maintenance-hassle ways using
this slimmer, trimmer codebase as the baseline.
Also in this commit (in addition to the merged changes):
* templates/docroot/styles.css
Minor stylation tweaks.
* viewvc.conf.dist
(enable_syntax_coloration): Tweak the comment to indicate that
Pygments is required for syntax coloration to work.
* CHANGES
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1918 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-30 18:38:09 +04:00
|
|
|
<li><a href="#variables-file">File Contents View (file.ezt)</a></li>
|
2005-11-15 07:56:12 +03:00
|
|
|
<li><a href="#variables-graph">Revision Graph View (graph.ezt)</a></li>
|
|
|
|
<li><a href="#variables-diff">File Difference View (diff.ezt)</a></li>
|
|
|
|
<li><a href="#variables-directory">Directory Listing View (directory.ezt)</a></li>
|
|
|
|
<li><a href="#variables-error">Error View (error.ezt)</a></li>
|
|
|
|
<li><a href="#variables-log">Revision Log View (log.ezt)</a></li>
|
2007-07-26 22:55:15 +04:00
|
|
|
<li><a href="#variables-query_results">Revision History Query Results View (query_results.ezt, rss.ezt)</a></li>
|
2005-11-15 07:56:12 +03:00
|
|
|
<li><a href="#variables-query_form">Revision History Query Form View (query_form.ezt)</a></li>
|
|
|
|
<li><a href="#variables-revision">Revision/ChangeSet View (revision.ezt)</a></li>
|
|
|
|
<li><a href="#variables-roots">Root Listing View (roots.ezt)</a></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h2">
|
|
|
|
<h2 id="ezt">Using EZT</h2>
|
|
|
|
|
|
|
|
<p>### TODO ###</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h2">
|
2006-03-18 03:33:54 +03:00
|
|
|
<h2 id="variables">Variables Available to ViewVC Templates</h2>
|
2005-11-15 07:56:12 +03:00
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-common">Common Template Variable Set (COMMON)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2006-05-19 19:40:24 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">annotate_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the ViewVC annotation view for the current resource.
|
|
|
|
Valid only when <var>pathtype</var> is <tt>file</tt>.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">cfg</td>
|
|
|
|
<td>Object</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>Representation of the object used by ViewVC for runtime
|
2005-11-15 07:56:12 +03:00
|
|
|
configuration parameters such as those parsed from
|
2006-03-18 03:33:54 +03:00
|
|
|
<tt>viewvc.conf</tt>. Dot-qualified children of this object
|
2005-11-15 07:56:12 +03:00
|
|
|
map to configuration sections and option keys. For example,
|
|
|
|
<var>cfg.options.show_logs</var> contains the value of the
|
|
|
|
<var>show_logs</var> variable in the <var>options</var> section
|
|
|
|
of the configuration file.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">docroot</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the static documents directory, generally used for
|
|
|
|
referencing stylesheets and images stored in and under that
|
|
|
|
directory (which is typically relative to the template
|
|
|
|
location).</td>
|
|
|
|
</tr>
|
2006-05-19 19:40:24 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">download_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>ViewVC file contents download URL for the current resource.
|
|
|
|
Valid only when <var>pathtype</var> is <tt>file</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">download_text_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>ViewVC file contents as-text download URL for the current resource.
|
|
|
|
Valid only when <var>pathtype</var> is <tt>file</tt>.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">graph_href</td>
|
|
|
|
<td>String</td>
|
2006-05-19 19:40:24 +04:00
|
|
|
<td>URL of the ViewVC revision graph view for the current resource.
|
|
|
|
Valid only when <var>pathtype</var> is <tt>file</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">kv</td>
|
|
|
|
<td>Object</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>Representation of the object used by ViewVC for user-defined
|
2005-11-15 07:56:12 +03:00
|
|
|
key/value mappings. Dot-qualified children of this object map
|
|
|
|
to named key/value files and the sections and keys within
|
|
|
|
them. For example, <var>kv.l10n.labels.directory</var>
|
|
|
|
maps to the value of the <var>directory</var> key under the
|
|
|
|
<var>labels</var> section of the key/value file whose configured
|
|
|
|
abstract name is <var>l10n</var>.</td>
|
|
|
|
</tr>
|
2008-02-13 00:06:40 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">lockinfo</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Information about the lock status of the current resource.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">log_href</td>
|
|
|
|
<td>String</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>URL of the ViewVC revision log view for the current
|
2006-05-19 19:40:24 +04:00
|
|
|
resource. Valid only when <var>pathtype</var> is <tt>file</tt>
|
|
|
|
or (for Subversion roots) <tt>dir</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">nav_path</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Ordered list of path components from the repository root to the
|
|
|
|
current resource.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">nav_path.href</td>
|
|
|
|
<td>String</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>URL of the default ViewVC view for the path component.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">nav_path.name</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Name of the path component.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">pathtype</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Path kind of the current resource. Valid values: <tt>file</tt>
|
|
|
|
(file), <tt>dir</tt> (directory); may be empty.</td>
|
|
|
|
</tr>
|
2006-05-19 19:40:24 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">prefer_markup</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether to make the default file link a link to the markup
|
|
|
|
page instead of the checkout page. Valid only when
|
|
|
|
<var>pathtype</var> is <tt>file</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">queryform_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for a query form returning results from this directory.
|
|
|
|
Valid only when <var>pathtype</var> is <tt>dir</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">rev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Revision of the current resource.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">revision_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the Subversion revision view for the current revision.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">rootname</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Name of the current repository (root).</td>
|
|
|
|
</tr>
|
2008-01-10 22:21:26 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">roots_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of ViewVC root listing view. Valid only when ViewVC is
|
|
|
|
configured in roots-as-url-components mode.</td>
|
|
|
|
</tr>
|
2006-08-17 19:20:44 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">rootpath</td>
|
|
|
|
<td>String</td>
|
2006-08-18 20:05:29 +04:00
|
|
|
<td>Server-local location of the current repository. WARNING: Revealing
|
2006-08-17 19:20:44 +04:00
|
|
|
information to untrusted guests about the details of your server
|
|
|
|
configuration can have negative security implications. Use this
|
|
|
|
token at your own risk.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">roottype</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Version control type of the current repository (root).
|
|
|
|
Valid values: <tt>cvs</tt> (CVS), <tt>svn</tt> (Subversion).</td>
|
|
|
|
</tr>
|
2006-05-19 19:40:24 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">rss_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of RSS feed for current location.</td>
|
|
|
|
</tr>
|
2006-07-24 18:53:41 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tarball_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download tarball of the current directory.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">up_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Link to the current object's parent directory view.</td>
|
|
|
|
</tr>
|
2008-05-21 17:21:14 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">username</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Authenticated username of the requesting user.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">view</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Name of the current view. Valid values: <tt>annotate</tt>
|
|
|
|
(annotation view), <tt>diff</tt> (file difference view),
|
|
|
|
<tt>roots</tt> (root listing view), <tt>dir</tt> (directory
|
|
|
|
listing view), <tt>graph</tt> (revision graph view), <tt>log</tt>
|
|
|
|
(revision log view), <tt>markup</tt> (file contents view),
|
|
|
|
<tt>query</tt> (revision history query results view),
|
|
|
|
<tt>queryform</tt> (revision history query form view),
|
|
|
|
<tt>rev</tt> (revision/changeset view).</td>
|
|
|
|
</tr>
|
2006-05-19 19:40:24 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">view_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the ViewVC file contents view for the current resource.
|
|
|
|
Valid only when <var>pathtype</var> is <tt>file</tt> or
|
|
|
|
<tt>dir</tt>.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">vsn</td>
|
|
|
|
<td>String</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>ViewVC version identifier.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">where</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Path (relative to the current repository root) of the current
|
|
|
|
resource.</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-pathrev">Path Revision Form Variable Set (PATHREV)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">lastrev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>If the current path is deleted in a future revision, last
|
|
|
|
revision where the path is available. (Subversion only)</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">pathrev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Current sticky revision (Subversion) or sticky tag (CVS)</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">pathrev_action</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for the sticky revision/tag selection form.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">pathrev_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for the revision/tag selection form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">pathrev_clear_action</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for the path revision clear button.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">pathrev_clear_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for the path revision clear button.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2005-12-08 21:18:08 +03:00
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-paging">Paging Form Variable Set (PAGING)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">picklist</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>List of pages that make up the current directory or log view.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2008-04-15 22:17:02 +04:00
|
|
|
<td class="varname">picklist.count</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
2008-04-15 22:17:02 +04:00
|
|
|
<td>Number of the first item on the page (indexed from 0)</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">picklist.end</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Name of last item on the page</td>
|
|
|
|
</tr>
|
2008-04-15 22:17:02 +04:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">picklist.more</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>If set, indicates that this picklist item is a placeholder for
|
|
|
|
an unspecified number of additional pages. In this case,
|
|
|
|
<code>picklist.end</code> is undefined.</td>
|
|
|
|
</tr>
|
2005-12-08 21:18:08 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">picklist.page</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Page number (indexed from 1)</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2008-04-15 22:17:02 +04:00
|
|
|
<td class="varname">picklist.start</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
2008-04-15 22:17:02 +04:00
|
|
|
<td>Name of first item on the page</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">picklist_len</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of pages in <var>picklist</var></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2008-04-10 00:14:33 +04:00
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-properties">Property Listing Variable Set (PROPERTIES)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">properties</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>List of item properties set on the current directory, minus
|
|
|
|
those with undisplayable names.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">properties.name</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Name of an item property.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">properties.undisplayable</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether or not the value of this property is
|
|
|
|
undisplayable (by virtue of not being UTF-8 text).</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">properties.value</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Value of this property.</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2005-11-15 07:56:12 +03:00
|
|
|
<div class="h3">
|
Merge the work done on the 'merged-file-views' branch in full. For
the details of those changes, run:
svn log --stop-on-copy --verbose \
http://viewvc.tigris.org/svn/viewvc/branches/merged-file-views@1917
Basically, this change unifies the annotate and markup views at the
cost of dropping support for all but one of our syntax highlighting
engines -- Pygments. (So, goodbye to 'enscript', 'highlight',
'source-highlight', 'py2html', and 'php'.) By settling on a single
markup engine (and a Python-module-based one with a BSD license, at
that), we:
* added syntax highlighting to the annotate view
* added line numbers to the markup view (prior to this, you
sometimes had 'em and sometimes didn't, depending on which
highlighting engine you used).
* essentially unified the markup and annotate views -- they even
share the same template now.
* can ship ViewVC with Pygments and syntax highighting enabled so
folks don't have to do additional config work to get that feature.
This change may be controversial. Depending on the overlap of
supported syntaxes across the various engines we supported prior to
this change, we may be losing support for some languages. And we're
also losing URL markup-ing (which was, again, partially supported
depending on the markup engine you were using). Somebody is going to
get upset that their pet benefit is now missing. I understand that.
I'm optimistic, though, that we can identify the lossages that really,
really matter, and address them in low-maintenance-hassle ways using
this slimmer, trimmer codebase as the baseline.
Also in this commit (in addition to the merged changes):
* templates/docroot/styles.css
Minor stylation tweaks.
* viewvc.conf.dist
(enable_syntax_coloration): Tweak the comment to indicate that
Pygments is required for syntax coloration to work.
* CHANGES
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1918 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-30 18:38:09 +04:00
|
|
|
<h3 id="variables-file">File Contents View (file.ezt)</h3>
|
2005-11-15 07:56:12 +03:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
2008-04-10 00:14:33 +04:00
|
|
|
<a href="#variables-common">COMMON</a> and
|
|
|
|
<a href="#variables-properties">PROPERTIES</a> variable sets</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
Begin the work of merging the markup and annotate views by at least
having them populate almost identical data dictionaries, and having
similar template headers.
* docs/upgrading-howto.html
(Upgrading from 1.0.0): Note that 'mime_type', 'log', 'date', 'ago',
'author', 'branches', 'tags', 'branch_points', 'changed', 'size',
'state', 'vendor_branch', and 'prev' were added to annotate.ezt.
* docs/template-authoring-guide.html
(Annotation View): Add 'mime_type', 'log', 'date', 'ago', 'author',
'branches', 'tags', 'branch_points', 'changed', 'size', 'state',
'vendor_branch', and 'prev'.
* templates/annotate.ezt
Basically, replace the top of this thing with a copy of the top of
markup.ezt.
* lib/viewvc.py
(view_annotate): Populate almost an identical data dictionary to
what the markup view uses.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1552 8cb11bc2-c004-0410-86c3-e597b4017df7
2007-03-28 22:34:51 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">ago</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Text description of the time elapsed since <var>date</var>.</td>
|
|
|
|
</tr>
|
Merge the work done on the 'merged-file-views' branch in full. For
the details of those changes, run:
svn log --stop-on-copy --verbose \
http://viewvc.tigris.org/svn/viewvc/branches/merged-file-views@1917
Basically, this change unifies the annotate and markup views at the
cost of dropping support for all but one of our syntax highlighting
engines -- Pygments. (So, goodbye to 'enscript', 'highlight',
'source-highlight', 'py2html', and 'php'.) By settling on a single
markup engine (and a Python-module-based one with a BSD license, at
that), we:
* added syntax highlighting to the annotate view
* added line numbers to the markup view (prior to this, you
sometimes had 'em and sometimes didn't, depending on which
highlighting engine you used).
* essentially unified the markup and annotate views -- they even
share the same template now.
* can ship ViewVC with Pygments and syntax highighting enabled so
folks don't have to do additional config work to get that feature.
This change may be controversial. Depending on the overlap of
supported syntaxes across the various engines we supported prior to
this change, we may be losing support for some languages. And we're
also losing URL markup-ing (which was, again, partially supported
depending on the markup engine you were using). Somebody is going to
get upset that their pet benefit is now missing. I understand that.
I'm optimistic, though, that we can identify the lossages that really,
really matter, and address them in low-maintenance-hassle ways using
this slimmer, trimmer codebase as the baseline.
Also in this commit (in addition to the merged changes):
* templates/docroot/styles.css
Minor stylation tweaks.
* viewvc.conf.dist
(enable_syntax_coloration): Tweak the comment to indicate that
Pygments is required for syntax coloration to work.
* CHANGES
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1918 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-30 18:38:09 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">annotation</td>
|
|
|
|
<td>String</td>
|
2008-12-10 20:26:37 +03:00
|
|
|
<td>Valid values are "none" (no annotations were attempted),
|
|
|
|
"annotated" (annotation was successful), "binary" (file contents
|
|
|
|
are not line-based and human-readable), and "error" (something
|
|
|
|
went wrong during annotation).</td>
|
Merge the work done on the 'merged-file-views' branch in full. For
the details of those changes, run:
svn log --stop-on-copy --verbose \
http://viewvc.tigris.org/svn/viewvc/branches/merged-file-views@1917
Basically, this change unifies the annotate and markup views at the
cost of dropping support for all but one of our syntax highlighting
engines -- Pygments. (So, goodbye to 'enscript', 'highlight',
'source-highlight', 'py2html', and 'php'.) By settling on a single
markup engine (and a Python-module-based one with a BSD license, at
that), we:
* added syntax highlighting to the annotate view
* added line numbers to the markup view (prior to this, you
sometimes had 'em and sometimes didn't, depending on which
highlighting engine you used).
* essentially unified the markup and annotate views -- they even
share the same template now.
* can ship ViewVC with Pygments and syntax highighting enabled so
folks don't have to do additional config work to get that feature.
This change may be controversial. Depending on the overlap of
supported syntaxes across the various engines we supported prior to
this change, we may be losing support for some languages. And we're
also losing URL markup-ing (which was, again, partially supported
depending on the markup engine you were using). Somebody is going to
get upset that their pet benefit is now missing. I understand that.
I'm optimistic, though, that we can identify the lossages that really,
really matter, and address them in low-maintenance-hassle ways using
this slimmer, trimmer codebase as the baseline.
Also in this commit (in addition to the merged changes):
* templates/docroot/styles.css
Minor stylation tweaks.
* viewvc.conf.dist
(enable_syntax_coloration): Tweak the comment to indicate that
Pygments is required for syntax coloration to work.
* CHANGES
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1918 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-30 18:38:09 +04:00
|
|
|
</tr>
|
Begin the work of merging the markup and annotate views by at least
having them populate almost identical data dictionaries, and having
similar template headers.
* docs/upgrading-howto.html
(Upgrading from 1.0.0): Note that 'mime_type', 'log', 'date', 'ago',
'author', 'branches', 'tags', 'branch_points', 'changed', 'size',
'state', 'vendor_branch', and 'prev' were added to annotate.ezt.
* docs/template-authoring-guide.html
(Annotation View): Add 'mime_type', 'log', 'date', 'ago', 'author',
'branches', 'tags', 'branch_points', 'changed', 'size', 'state',
'vendor_branch', and 'prev'.
* templates/annotate.ezt
Basically, replace the top of this thing with a copy of the top of
markup.ezt.
* lib/viewvc.py
(view_annotate): Populate almost an identical data dictionary to
what the markup view uses.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1552 8cb11bc2-c004-0410-86c3-e597b4017df7
2007-03-28 22:34:51 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">author</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Author of the revision being viewed.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">branch_points</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>List of branch tag names which branch off of the revision being
|
|
|
|
viewed (CVS only).</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">branches</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>If revision currently being viewed is on a branch, list of names
|
|
|
|
for the branch.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">changed</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Numbers of lines added and removed since the previous revision.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">date</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) of the revision currently
|
|
|
|
being viewed.</td>
|
|
|
|
</tr>
|
Merge the work done on the 'merged-file-views' branch in full. For
the details of those changes, run:
svn log --stop-on-copy --verbose \
http://viewvc.tigris.org/svn/viewvc/branches/merged-file-views@1917
Basically, this change unifies the annotate and markup views at the
cost of dropping support for all but one of our syntax highlighting
engines -- Pygments. (So, goodbye to 'enscript', 'highlight',
'source-highlight', 'py2html', and 'php'.) By settling on a single
markup engine (and a Python-module-based one with a BSD license, at
that), we:
* added syntax highlighting to the annotate view
* added line numbers to the markup view (prior to this, you
sometimes had 'em and sometimes didn't, depending on which
highlighting engine you used).
* essentially unified the markup and annotate views -- they even
share the same template now.
* can ship ViewVC with Pygments and syntax highighting enabled so
folks don't have to do additional config work to get that feature.
This change may be controversial. Depending on the overlap of
supported syntaxes across the various engines we supported prior to
this change, we may be losing support for some languages. And we're
also losing URL markup-ing (which was, again, partially supported
depending on the markup engine you were using). Somebody is going to
get upset that their pet benefit is now missing. I understand that.
I'm optimistic, though, that we can identify the lossages that really,
really matter, and address them in low-maintenance-hassle ways using
this slimmer, trimmer codebase as the baseline.
Also in this commit (in addition to the merged changes):
* templates/docroot/styles.css
Minor stylation tweaks.
* viewvc.conf.dist
(enable_syntax_coloration): Tweak the comment to indicate that
Pygments is required for syntax coloration to work.
* CHANGES
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1918 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-30 18:38:09 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">image_src_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL used to display the current revision of the file as an
|
|
|
|
embedded image. (Set only if the file is not a web-viewable
|
|
|
|
image.)</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">lines</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Set of objects containing information about the most recent
|
|
|
|
modification of a single line of file content in the current
|
|
|
|
resource, naturally ordered by the line numbers they represent.
|
|
|
|
Every line in the resource is represented in the set.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">lines.author</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Username of the most recent modifier of the line.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">lines.date</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) of the modification of
|
|
|
|
the line.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
Merge the work done on the 'merged-file-views' branch in full. For
the details of those changes, run:
svn log --stop-on-copy --verbose \
http://viewvc.tigris.org/svn/viewvc/branches/merged-file-views@1917
Basically, this change unifies the annotate and markup views at the
cost of dropping support for all but one of our syntax highlighting
engines -- Pygments. (So, goodbye to 'enscript', 'highlight',
'source-highlight', 'py2html', and 'php'.) By settling on a single
markup engine (and a Python-module-based one with a BSD license, at
that), we:
* added syntax highlighting to the annotate view
* added line numbers to the markup view (prior to this, you
sometimes had 'em and sometimes didn't, depending on which
highlighting engine you used).
* essentially unified the markup and annotate views -- they even
share the same template now.
* can ship ViewVC with Pygments and syntax highighting enabled so
folks don't have to do additional config work to get that feature.
This change may be controversial. Depending on the overlap of
supported syntaxes across the various engines we supported prior to
this change, we may be losing support for some languages. And we're
also losing URL markup-ing (which was, again, partially supported
depending on the markup engine you were using). Somebody is going to
get upset that their pet benefit is now missing. I understand that.
I'm optimistic, though, that we can identify the lossages that really,
really matter, and address them in low-maintenance-hassle ways using
this slimmer, trimmer codebase as the baseline.
Also in this commit (in addition to the merged changes):
* templates/docroot/styles.css
Minor stylation tweaks.
* viewvc.conf.dist
(enable_syntax_coloration): Tweak the comment to indicate that
Pygments is required for syntax coloration to work.
* CHANGES
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1918 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-30 18:38:09 +04:00
|
|
|
<td class="varname">lines.diff_href</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>URL of the ViewVC file difference view which displays the
|
2005-11-15 07:56:12 +03:00
|
|
|
modification of the line.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">lines.line_number</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Line number (1-based) of the line.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">lines.prev_rev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Youngest revision of the resource prior to the line's
|
|
|
|
modification.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">lines.rev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Revision in which the modification of the line occured.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">lines.text</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Textual contents of the line.</td>
|
|
|
|
</tr>
|
Begin the work of merging the markup and annotate views by at least
having them populate almost identical data dictionaries, and having
similar template headers.
* docs/upgrading-howto.html
(Upgrading from 1.0.0): Note that 'mime_type', 'log', 'date', 'ago',
'author', 'branches', 'tags', 'branch_points', 'changed', 'size',
'state', 'vendor_branch', and 'prev' were added to annotate.ezt.
* docs/template-authoring-guide.html
(Annotation View): Add 'mime_type', 'log', 'date', 'ago', 'author',
'branches', 'tags', 'branch_points', 'changed', 'size', 'state',
'vendor_branch', and 'prev'.
* templates/annotate.ezt
Basically, replace the top of this thing with a copy of the top of
markup.ezt.
* lib/viewvc.py
(view_annotate): Populate almost an identical data dictionary to
what the markup view uses.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1552 8cb11bc2-c004-0410-86c3-e597b4017df7
2007-03-28 22:34:51 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">log</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Log message of the revision currently being viewed.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">mime_type</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>MIME type of the current file.</td>
|
|
|
|
</tr>
|
2006-05-19 19:40:24 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">orig_path</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>When viewing an old file revision through a copy of the file,
|
|
|
|
this is the old file revision's original path.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">orig_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of a ViewVC log view for <code>orig_path</code>.</td>
|
|
|
|
</tr>
|
Begin the work of merging the markup and annotate views by at least
having them populate almost identical data dictionaries, and having
similar template headers.
* docs/upgrading-howto.html
(Upgrading from 1.0.0): Note that 'mime_type', 'log', 'date', 'ago',
'author', 'branches', 'tags', 'branch_points', 'changed', 'size',
'state', 'vendor_branch', and 'prev' were added to annotate.ezt.
* docs/template-authoring-guide.html
(Annotation View): Add 'mime_type', 'log', 'date', 'ago', 'author',
'branches', 'tags', 'branch_points', 'changed', 'size', 'state',
'vendor_branch', and 'prev'.
* templates/annotate.ezt
Basically, replace the top of this thing with a copy of the top of
markup.ezt.
* lib/viewvc.py
(view_annotate): Populate almost an identical data dictionary to
what the markup view uses.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1552 8cb11bc2-c004-0410-86c3-e597b4017df7
2007-03-28 22:34:51 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">prev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Previous revision number.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">size</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Size of the file revision, in bytes. Subversion only.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">state</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>State of the file revision. Possible values: <tt>dead</tt>, and
|
|
|
|
the empty string.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tags</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Names of tags that have been applied to the current file
|
|
|
|
revision.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">vendor_branch</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether or not the current file revision is on a vendor
|
|
|
|
branch.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-graph">Revision Graph View (graph.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
|
|
|
<a href="#variables-common">COMMON</a> variable set</td>
|
|
|
|
</tr>
|
Finish issue #336 - Custom cvsgraph rendering via CGI parameters.
* conf/viewvc.conf.dist
(allowed_cvsgraph_useropts): New option.
* lib/config.py
(Config.set_defaults): Set default value for new
'allowed_cvsgraph_useropts' option.
* lib/viewvc.py
(_legal_params): Add new legal parameters: 'gflip', 'gbbox',
'gshow', 'gleft', and 'gmaxtag'.
(cvsgraph_make_reqopt, cvsgraph_normalize_gshow, cvsgraph_extraopts):
New helper functions.
(view_cvsgraph_image): Now pass the -O option set to the cvsgraph
binary.
(view_cvsgraph): Now pass the -O option set to the cvsgraph binary.
Also, add new template data stuff for generating a user-configurable
graph display options form.
* templates/graph.ezt,
* templates/docroot/styles.css
Add template stuff for generating a user-configurable graph display
options form.
* docs/url-reference.html,
* docs/template-authoring-guide.html
Update documentation.
* CHANGES
Note this change.
Patch by: Bertho Stultiens <bertho{_AT_}j.auh.dk> (originally),
Jene Jasper <tigris{_AT_}shadowland.demon.nl> (port to 1.1.x),
me (tweaks for official ViewVC inclusion)
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2204 8cb11bc2-c004-0410-86c3-e597b4017df7
2009-06-16 00:18:35 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">gbbox</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Toggle generation of a branch box at the tip of all branches in
|
|
|
|
the revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">gflip</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Toggle the direction of the revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">gleft</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Toggle the orientation of the revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">gmaxtag</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of tags per revision to display in the revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">graph_action</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for the graph customization form.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">graph_hidden_values</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Hidden value name/value pairs for the graph customization form.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">gshow</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Classes of revisions to show in the revision graph. Valid values
|
|
|
|
are <tt>all</tt> (all revision), <tt>inittagged</tt> (initial
|
|
|
|
revision(s) and tagged revisions), and <tt>tagged</tt> (tagged
|
|
|
|
revisions only).</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">imagemap</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>HTML markup containing the image map associated with the
|
|
|
|
revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">imagesrc</td>
|
|
|
|
<td>String</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>URL of the ViewVC revision graph image for the current
|
2005-11-15 07:56:12 +03:00
|
|
|
resource.</td>
|
|
|
|
</tr>
|
Finish issue #336 - Custom cvsgraph rendering via CGI parameters.
* conf/viewvc.conf.dist
(allowed_cvsgraph_useropts): New option.
* lib/config.py
(Config.set_defaults): Set default value for new
'allowed_cvsgraph_useropts' option.
* lib/viewvc.py
(_legal_params): Add new legal parameters: 'gflip', 'gbbox',
'gshow', 'gleft', and 'gmaxtag'.
(cvsgraph_make_reqopt, cvsgraph_normalize_gshow, cvsgraph_extraopts):
New helper functions.
(view_cvsgraph_image): Now pass the -O option set to the cvsgraph
binary.
(view_cvsgraph): Now pass the -O option set to the cvsgraph binary.
Also, add new template data stuff for generating a user-configurable
graph display options form.
* templates/graph.ezt,
* templates/docroot/styles.css
Add template stuff for generating a user-configurable graph display
options form.
* docs/url-reference.html,
* docs/template-authoring-guide.html
Update documentation.
* CHANGES
Note this change.
Patch by: Bertho Stultiens <bertho{_AT_}j.auh.dk> (originally),
Jene Jasper <tigris{_AT_}shadowland.demon.nl> (port to 1.1.x),
me (tweaks for official ViewVC inclusion)
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2204 8cb11bc2-c004-0410-86c3-e597b4017df7
2009-06-16 00:18:35 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">opt_gbbox</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Specifies whether the user is allowed to toggle the generation
|
|
|
|
of branch boxes at the tip of all branches in the revision
|
|
|
|
graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">opt_gflip</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Specifies whether the user is allowed to toggle the direction
|
|
|
|
of the revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">opt_gleft</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Specifies whether the user is allowed to toggle the orientation
|
|
|
|
of the revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">opt_gmaxtag</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Specifies whether the user is allowed to configure the maximum
|
|
|
|
number of tags per revision show in the revision graph.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">opt_gshow</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Specifies whether the user is allowed to configure which
|
|
|
|
classes of revisions are shown in the revision graph.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-diff">File Difference View (diff.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
|
|
|
<a href="#variables-common">COMMON</a> variable set</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>List</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>List of all blocks of differences between the two sides, including content
|
|
|
|
and property differences.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2011-10-27 22:20:06 +04:00
|
|
|
<td class="varname">diffs.diff_block_format</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Indicates the type of this block. One of the <tt>anchor</tt> (no display,
|
|
|
|
create an anchor), <tt>raw</tt> (non-colored diff, display as produced),
|
|
|
|
<tt>sidebyside-1</tt> (traditional side-by-side diff),
|
|
|
|
<tt>sidebyside-2</tt> (newer side-by-side diff with intraline changes),
|
|
|
|
<tt>unified</tt> (colored unified diff).</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.anchor</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
2011-10-27 22:20:06 +04:00
|
|
|
<td>If <var>diffs.diff_block_format</var> is <tt>anchor</tt>, this variable specifies
|
2011-10-25 00:05:37 +04:00
|
|
|
the anchor name.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>List/Container</td>
|
|
|
|
<td>Set of objects which contain information about a change in a single
|
2011-10-27 22:20:06 +04:00
|
|
|
object (file or property). Not present if <var>diffs.diff_block_format</var> is
|
2011-10-25 00:05:37 +04:00
|
|
|
<tt>anchor</tt>, otherwise has different format depending on
|
2011-10-27 22:20:06 +04:00
|
|
|
<var>diffs.diff_block_format</var> (applicable as indicated in brackets below).</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.raw</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
2011-10-26 23:18:20 +04:00
|
|
|
<td>[raw] Diff text. Valid only if <var>diffs.changes.type</var> is
|
2011-10-25 00:05:37 +04:00
|
|
|
<tt>raw</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.type</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>[raw] The type of change. Values: <tt>binary-diff</tt>,
|
|
|
|
<tt>error</tt>, <tt>no-changes</tt>, <tt>raw</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.have_left</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>Boolean</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] Specifies whether the left file has a line of content relevant
|
2005-11-15 07:56:12 +03:00
|
|
|
to the difference data line. Valid only when
|
|
|
|
<var>changes.type</var> is <tt>change</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.have_right</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>Boolean</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] Specifies whether the right file has a line of content relevant
|
2005-11-15 07:56:12 +03:00
|
|
|
to the difference data line. Valid only when
|
|
|
|
<var>changes.type</var> is <tt>change</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.left</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] Textual contents of the relevant line in the left file. Valid
|
2005-11-15 07:56:12 +03:00
|
|
|
only when <var>changes.type</var> is <tt>change</tt>,
|
|
|
|
<tt>context</tt>, or <tt>remove</tt>. When
|
|
|
|
<var>changes.type</var> is <tt>change</tt>, valid only when
|
|
|
|
<var>changes.have_left</var> is set (in order to delineate
|
|
|
|
between missing lines and empty lines, which EZT does not
|
|
|
|
support).</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.right</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] Textual contents of the relevant line in the right file. Valid
|
2005-11-15 07:56:12 +03:00
|
|
|
only when <var>changes.type</var> is <tt>add</tt>, <tt>change</tt>,
|
|
|
|
or <tt>context</tt>. When
|
|
|
|
<var>changes.type</var> is <tt>change</tt>, valid only when
|
|
|
|
<var>changes.have_left</var> is set (in order to delineate
|
|
|
|
between missing lines and empty lines, which EZT does not
|
|
|
|
support).</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.line_info_extra</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] Additional line information for the current difference hunk.
|
2005-11-15 07:56:12 +03:00
|
|
|
Valid only when <var>changes.type</var> is <tt>header</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.line_info_left</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] First line number represented by the current hunk in the left
|
2005-11-15 07:56:12 +03:00
|
|
|
file. Valid only when <var>changes.type</var> is <tt>header</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.line_info_right</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] First line number represented by the current hunk in the right
|
2005-11-15 07:56:12 +03:00
|
|
|
file. Valid only when <var>changes.type</var> is <tt>header</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.line_number</td>
|
2006-01-21 16:08:54 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] Line number (1-based) of the line.</td>
|
2006-01-21 16:08:54 +03:00
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.type</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-1] The type of change. Values: <tt>add</tt>, <tt>binary-diff</tt>,
|
|
|
|
<tt>change</tt>, <tt>context</tt>, <tt>error</tt>, <tt>header</tt>,
|
2005-11-15 07:56:12 +03:00
|
|
|
<tt>no-changes</tt>, <tt>remove</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.columns</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>List</td>
|
|
|
|
<td>[sidebyside-2] List of two columns for left and right parts of the diff.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel4">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.columns.line_number</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-2] Line number in the left/right column.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel4">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.columns.segments</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>List</td>
|
|
|
|
<td>[sidebyside-2] Left/right line, broken into change segments.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel5">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.columns.segments.text</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[sidebyside-2] Text of this segment.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel5">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.columns.segments.type</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>[sidebyside-2] Not set if the segment is the same in both left and right sides;
|
|
|
|
otherwise, one of the <tt>add</tt>, <tt>remove</tt> or <tt>change</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.gap</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>Boolean</td>
|
|
|
|
<td>[sidebyside-2] If true, indicates that change blocks are non-contiguous
|
|
|
|
and that the template should display some sort of ellipsis before the
|
|
|
|
current block.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.type</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>[sidebyside-2] The type of change. Values: <tt>binary-diff</tt>,
|
|
|
|
<tt>error</tt>, <tt>intraline</tt>, <tt>no-changes</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.segments</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>[unified] Left/right line, broken into change segments.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel4">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.segments.text</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>[unified] Text of this segment.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel4">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.segments.type</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>[unified] Not set if the segment is the same in both left and right sides;
|
|
|
|
otherwise, one of the <tt>add</tt>, <tt>remove</tt> or <tt>change</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.changes.type</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>[unified] The type of change. Values: <tt>add</tt>, <tt>binary-diff</tt>,
|
|
|
|
<tt>error</tt>, <tt>no-changes</tt>, <tt>remove</tt> or empty string
|
|
|
|
if the line was not changed (context line).</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>Container</td>
|
|
|
|
<td>Container object for grouping information about the left file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.ago</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Text description of the time elapsed since <var>left.date</date>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.annotate_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the ViewVC annotation view for the left file.
|
|
|
|
Valid only when <var>entries.pathtype</var> is <tt>file</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.author</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Author of the revision of the left file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.date</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) in which the left file
|
|
|
|
revision was created.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.download_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the left file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.download_text_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the left file as
|
|
|
|
<tt>text/plain</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.log</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Log message of the left file revision.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.path</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Path of the left file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.prefer_markup</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether to make the default file link a link to the markup
|
|
|
|
page instead of the checkout page.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.rev</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision of the left file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.revision_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the Subversion revision view for the left file's
|
|
|
|
current revision. Valid only when <var>roottype</var> is
|
|
|
|
<tt>svn</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.size</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Size of the left file revision, in bytes. Subversion only.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.tag</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Tag of the left file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.left.view_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>This is a URL for the markup view of the left file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel2">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>Container</td>
|
|
|
|
<td>Container object for grouping information about the right file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.ago</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
2011-10-25 00:05:37 +04:00
|
|
|
<td>Text description of the time elapsed since <var>right.date</var>.</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.annotate_href</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>URL of the ViewVC annotation view for the right file.
|
|
|
|
Valid only when <var>entries.pathtype</var> is <tt>file</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.author</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Author of the revision of the right file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.date</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) in which the right file
|
|
|
|
revision was created.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.download_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the right file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.download_text_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the right file as
|
|
|
|
<tt>text/plain</tt>.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.log</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Log message of the right file revision.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.path</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Path of the right file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.prefer_markup</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether to make the default file link a link to the markup
|
|
|
|
page instead of the checkout page.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.rev</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision of the right file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.revision_href</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>URL of the Subversion revision view for the right file's
|
|
|
|
current revision. Valid only when <var>roottype</var> is
|
|
|
|
<tt>svn</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.size</td>
|
2009-10-25 23:46:09 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Size of the right file revision, in bytes. Subversion only.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.tag</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Tag of the right file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel3">
|
2011-10-26 23:18:20 +04:00
|
|
|
<td class="varname">diffs.right.view_href</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>This is a URL for the markup view of the right file.</td>
|
|
|
|
</tr>
|
2011-10-25 00:05:37 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">diff_format</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Difference display format: Valid values are <tt>c</tt>
|
|
|
|
(context), <tt>f</tt> (full human-readable),
|
|
|
|
<tt>h</tt> (human-readable, or colored), <tt>l</tt> (long
|
|
|
|
human-readable), <tt>s</tt> (side-by-side), <tt>u</tt>
|
|
|
|
(unified).</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">diff_format_action</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for the diff format selection form.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">diff_format_hidden_values</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Hidden field name/value pairs for the diff format selection form.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">hide_legend</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether the display format requires displaying a legend</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">patch_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the patch view for the file.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-directory">Directory Listing View (directory.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
2005-12-08 21:18:08 +03:00
|
|
|
<a href="#variables-common">COMMON</a>,
|
2008-04-10 00:14:33 +04:00
|
|
|
<a href="#variables-pathrev">PATHREV</a>,
|
|
|
|
<a href="#variables-paging">PAGING</a>, and
|
|
|
|
<a href="#variables-properties">PROPERTIES</a> variable sets</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">attic_showing</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether or not the directory list include "dead" files
|
|
|
|
(files not available in, perhaps deleted from, the current
|
|
|
|
tag). CVS only.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">branch_tags</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Set of branch tag names in use by files in the current directory.
|
|
|
|
CVS only.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">dir_pagestart</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Item number (zero-based) of the first directory entry requested
|
|
|
|
to be shown on the page. Corresponds to the
|
|
|
|
<var>dir_pagestart</var> CGI parameter.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">dir_paging_action</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for the page selection form.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">dir_paging_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for the page selection form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">entries</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Set of objects which represent the entries of this directory.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.ago</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Textual description of the time since <var>entries.date</var>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.annotate_href</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL of the ViewVC annotation view for the directory entry.
|
|
|
|
Valid only when <var>entries.pathtype</var> is <tt>file</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.author</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Username of the last modifier of the directory entry.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.date</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) of the last
|
|
|
|
modification of the directory entry.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.download_href</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the directory entry.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.download_text_href</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the directory entry as
|
|
|
|
<tt>text/plain</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.errors</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>List</td>
|
|
|
|
<td>List of strings containing error messages encountered by the
|
|
|
|
version control backend as it attempted to harvest information about
|
|
|
|
this directory entry. At this time the strings are somewhat
|
|
|
|
freeform; in the future it would be nice to expose these as
|
|
|
|
testable error code or somesuch.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.graph_href</td>
|
|
|
|
<td>String</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>URL of the ViewVC revision graph view for the directory
|
2005-11-15 07:56:12 +03:00
|
|
|
entry.</td>
|
|
|
|
</tr>
|
2008-02-13 00:06:40 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.lockinfo</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Information about the lock status of the directory entry.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.log</td>
|
2006-04-14 08:58:33 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>Log message of last modification to the directory entry.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.log_file</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>ViewVC optionally calculates the log message of a CVS directory
|
|
|
|
as the log message associated with the most recently modified
|
|
|
|
file in that directory. When that occurs, this is the name of
|
|
|
|
that file. Valid only when <var>entries.pathtype</var> is
|
|
|
|
<tt>dir</tt>. See also <var>entries.log_rev</var>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.log_href</td>
|
|
|
|
<td>String</td>
|
2006-03-18 03:33:54 +03:00
|
|
|
<td>URL of the ViewVC revision log view for the directory
|
2005-11-15 07:56:12 +03:00
|
|
|
entry.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.log_rev</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>ViewVC optionally calculates the log message of a CVS directory
|
|
|
|
as the log message associated with the most recently modified
|
|
|
|
file in that directory. When that occurs, this is the revision of
|
|
|
|
that file. Valid only when <var>entries.pathtype</var> is
|
|
|
|
<tt>dir</tt>. See also <var>entries.log_file</var>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.mime_type</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>String</td>
|
|
|
|
<td>MIME type of the directory entry.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.name</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Name of the directory entry.</td>
|
|
|
|
</tr>
|
2006-07-31 22:53:17 +04:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.pathtype</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Path kind of the directory entry. Valid values: <tt>file</tt>
|
|
|
|
(file), <tt>dir</tt> (directory); may be empty.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.prefer_markup</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether to make the default file link a link to the markup
|
|
|
|
page instead of the checkout page. Valid only when
|
|
|
|
<var>entries.pathtype</var> is <tt>file</tt>.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.rev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Revision of the directory entry. For CVS repositories, this is
|
|
|
|
a revision at the tip of the selected tag or branch; for
|
|
|
|
Subversion, this is the youngest revision as of the revision of
|
|
|
|
the directory being viewed.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.revision_href</td>
|
|
|
|
<td>String</td>
|
2007-07-27 00:56:10 +04:00
|
|
|
<td>URL of the Subversion revision view for the directory entry's
|
2005-11-15 07:56:12 +03:00
|
|
|
current revision. Valid only when <var>roottype</var> is
|
|
|
|
<tt>svn</tt>.</td>
|
|
|
|
</tr>
|
2006-04-14 08:58:33 +04:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.short_log</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Log message of last modification to the directory entry,
|
|
|
|
truncated to contain no more than the number of characters
|
|
|
|
specified by the <code>short_log_len</code> configuration option.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.size</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Size (in bytes) of the directory entry. Valid only when
|
|
|
|
<var>roottype</var> is <tt>svn</tt> and
|
|
|
|
<var>entries.pathtype</var> is <tt>file</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.state</td>
|
|
|
|
<td>String</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>State of the directory entry. If the state is uninteresting
|
|
|
|
(a typical, versioned object), this field is empty. Valid,
|
|
|
|
non-empty states include: <tt>dead</tt> (the object is not
|
|
|
|
available on, or possible removed from, this branch; CVS only).</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.view_href</td>
|
2006-07-31 22:53:17 +04:00
|
|
|
<td>String</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>This is a URL for the markup view if the entry is a file, and a
|
|
|
|
URL for a directory listing if the entry is a directory.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-08 21:18:08 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">files_shown</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of files displayed.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">hide_attic_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but with "dead" files hidden.
|
|
|
|
CVS only.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">num_dead</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of dead files in the current directory.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">plain_tags</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>List of tag names in use by files in the current directory.
|
|
|
|
CVS only.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">search_re</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Current search expression, if any.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">search_re_action</td>
|
|
|
|
<td>String</td>
|
Try to make ViewVC provide a consistent, predictable data dictionary
in all of its templated views. Do this with a custom, dictionary-like
class that prevents the creation of new keys after an initial
instantiation of keys and (possibly dummy) values.
* lib/ezt.py
(TemplateData): New.
* lib/viewvc.py
(common_template_data): Now return an ezt.TemplateData() object.
(make_comma_sep_list_string): New.
(markup_or_annotate): Use new ezt.TemplateData() interface now. Use
make_comma_sep_list_string() where applicable.
(view_roots, view_log, view_cvsgraph, view_diff, view_revision,
view_queryform, view_query): Use new ezt.TemplateData() interface now.
(view_directory): Use new ezt.TemplateData() interface now. Drop
'search_re_form' dictionary item.
* lib/query.py
(main): Use new ezt.TemplateData() interface now. While here, drop
'script_name' calculation (it isn't used).
* templates/include/dir_header.ezt
Display the search form if 'search_re_action' is set, not 'search_re_form'.
* docs/template-authoring-guide.html
Remove 'search_re_form'. Update 'search_re_action' description.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2123 8cb11bc2-c004-0410-86c3-e597b4017df7
2009-03-24 19:55:25 +03:00
|
|
|
<td>Form action URL for the regular expression search form,
|
|
|
|
if searching is available.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">search_re_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for the regular expression search form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">show_attic_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but with "dead" files shown.
|
|
|
|
CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sortby</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Current sorting mode. Valid values: <tt>file</tt>, <tt>rev</tt>,
|
|
|
|
<tt>date</tt>, <tt>author</tt>, and <tt>log</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sortby_author_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but sorted by author.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sortby_date_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but sorted by date.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sortby_file_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but sorted by filename.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sortby_log_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but sorted by log message.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sortby_rev_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but sorted by revision number.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sortdir</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Current sorting mode. Valid values: <tt>up</tt> (ascending) and
|
|
|
|
<tt>down</tt> (descending)</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tree_rev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Last revision number where the current directory (or any path
|
|
|
|
underneath it) was modified. Subversion only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tree_rev_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for revision view showing information about the
|
|
|
|
<var>tree_rev</var> revision. Subversion only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">youngest_rev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Last revision number in the repository. Subversion only</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">youngest_rev_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for revision view showing information about the
|
|
|
|
<var>youngest_rev</var> revision. Subversion only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-error">Error View (error.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">msg</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Message describing the current error.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">stacktrace</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Python stack trace showing where the error occurred.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">status</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>HTTP status code like "404 Not Found" that was sent to the
|
|
|
|
browser with this error message.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-log">Revision Log View (log.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
2005-12-08 21:18:08 +03:00
|
|
|
<a href="#variables-common">COMMON</a>,
|
|
|
|
<a href="#variables-pathrev">PATHREV</a>, and
|
|
|
|
<a href="#variables-paging">PAGING</a> variable sets</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">branch_tags</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>Names of branch tags in the file. CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">default_branch</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Default branch names (CVS only)</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">diff_format</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Currently selected diff format in the diff selection form. Valid
|
|
|
|
values are <tt>c</tt> (context), <tt>h</tt> (human-readable,
|
|
|
|
or colored), <tt>l</tt> (long human-readable), <tt>s</tt>
|
|
|
|
(side-by-side), <tt>u</tt> (unified).</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">diff_select_action</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for the diff selection form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">diff_select_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for the diff selection form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">entries</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>List of revisions where the file or directory was modified.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.ago</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Text description of the time elapsed since
|
|
|
|
<var>entries.date</var>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.annotate_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the annotate view of the file revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.author</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Author of the revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.branch_names</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>If this last revision on a branch, a list of names for that
|
|
|
|
branch.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.branch_point</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If the revision is on a branch, this is the revision number
|
|
|
|
the branch branched off from. CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.branch_points</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>List of branch tags which branch off of this revision.
|
|
|
|
CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">entries.branch_points.name</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Name of the branch tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">entries.branch_points.href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but with this tag set as the sticky
|
|
|
|
tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.branches</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>List of branch tags that include this file revision.
|
|
|
|
CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">entries.branches.name</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Name of the branch tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">entries.branches.href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view, but with this tag set as the sticky
|
|
|
|
tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.changed</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Numbers of lines added and removed since the previous revision.
|
|
|
|
CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.copy_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for log view of <var>entries.copy_path</var>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.copy_path</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If the file revision was copied from somewhere, this is the path it
|
|
|
|
was copied from. Subversion only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.copy_rev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If the file revision was copied from somewhere, this is the revision
|
|
|
|
number of the path it was copied from. Subversion only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.date</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) of the revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.diff_to_branch_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for a diff view of this file revision showing the changes
|
|
|
|
since the branch was created at (<var>entries.branch_point</var>).
|
|
|
|
CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.diff_to_main_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If this revision is at the tip of a branch, URL for a diff view of
|
|
|
|
this file revision showing the differences between it and the latest
|
|
|
|
revision on the parent branch
|
|
|
|
(<var>entries.next_main</var>). CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.diff_to_prev_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for a diff view of this file revision showing the changes
|
|
|
|
since the previous revision (<var>entries.prev</var>).</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.diff_to_sel_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for a diff view of this file revision and the currently
|
|
|
|
selected revision (<var>rev_selected</var>).</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.download_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the file revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.download_text_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the file revision as <tt>text/plain</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2008-02-12 22:41:19 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.lockinfo</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Information about the lock status of this revision.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">entries.log</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Revision log message.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.next_main</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If this revision is on the tip of the branch, this is the latest
|
|
|
|
revision of the parent branch, a likely merge candidate.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.orig_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for log view of <var>entries.orig_path</var></td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.orig_path</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If this file revision is located at a different path than the
|
|
|
|
newest file revision (because it precedes a copy or move), this
|
|
|
|
is the path it was originally located at. Subversion only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-09 11:17:27 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.prefer_markup</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether to make the default file link a link to the markup
|
|
|
|
page instead of the checkout page.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.prev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Previous revision number.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.rev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision number.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.revision_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for revision view showing more information about the
|
|
|
|
revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.sel_for_diff_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for current view, but with this revision selected for
|
|
|
|
diffs.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.size</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Size of the file revision, in bytes. Subversion only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.state</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>State of the file revision. Possible values: <tt>dead</tt>, and
|
|
|
|
the empty string.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.tag_names</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>List of tag names which refer to the revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.tags</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>List of tags which refer to the revision</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">entries.tags.name</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Name of the tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">entries.tags.href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current page, but with this tag set as the sticky
|
|
|
|
tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.vendor_branch</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates if this revision is on a vendor branch.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">entries.view_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for markup view for a file revision, or directory listing view
|
|
|
|
for a directory revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
When I added the various view hrefs to the common template data (long
ago), I inadvertantly cross namespaces with the log view's use of
those variables as links to the HEAD versions of files. Disambiguate
the head versions by renaming the data dictionary variables with head_
prefixes.
* lib/viewvc.py
(view_log): Store HEAD href stuff in variables with "head_" prefixes
so we don't clobber the global href variables.
* docs/upgrading-howto.html
Note renames of annotate_href, download_href, download_text_href,
prefer_markup, and view_href to head_annotate_href, head_download_href,
head_download_text_href, head_prefer_markup, and head_view_href
(respectively).
* docs/template-authoring-guide.html,
* templates/include/log_header.ezt
Track template variable renames.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1833 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-03-04 17:25:14 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">head_annotate_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for annotate view of the HEAD revision of the file.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">head_download_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the file.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">head_download_text_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the HEAD revision of the file as
|
|
|
|
<tt>text/plain</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">head_prefer_markup</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether to make the default HEAD file link a link to the markup
|
|
|
|
page instead of the checkout page.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">head_view_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for markup view of the HEAD revision of the file.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">human_readable</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether or not currently selected diff format
|
|
|
|
(<var>diff_format</var>) is human readable (colored).</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">log_pagestart</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Item number (zero based) of the first directory entry requested
|
|
|
|
to be shown on the page. Corresponds to the
|
|
|
|
<var>log_pagestart</var> query parameter.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">log_paging_action</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for the page selection form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">log_paging_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for the page selection form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">logsort</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Current sorting mode. Possible values: <tt>date</tt> and
|
|
|
|
<tt>rev</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">logsort_action</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for log sort drop down box.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">logsort_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for the log sort drop down box</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">mime_type</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>MIME type of current file.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">plain_tags</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>Names of non-branch in the file. CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">rev_selected</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision number currently selected for diffs.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tag_annotate_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for annotate view of the file at currently selected sticky
|
|
|
|
tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tag_download_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the file at currently selected sticky tag.
|
|
|
|
CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tag_download_text_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL to download the file as <tt>text/plain</tt> at the currently
|
|
|
|
selected sticky tag. CVS only</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2006-07-31 22:53:17 +04:00
|
|
|
<tr class="varlevel1">
|
2005-12-09 11:17:27 +03:00
|
|
|
<td class="varname">tag_prefer_markup</td>
|
|
|
|
<td>Boolean</td>
|
When I added the various view hrefs to the common template data (long
ago), I inadvertantly cross namespaces with the log view's use of
those variables as links to the HEAD versions of files. Disambiguate
the head versions by renaming the data dictionary variables with head_
prefixes.
* lib/viewvc.py
(view_log): Store HEAD href stuff in variables with "head_" prefixes
so we don't clobber the global href variables.
* docs/upgrading-howto.html
Note renames of annotate_href, download_href, download_text_href,
prefer_markup, and view_href to head_annotate_href, head_download_href,
head_download_text_href, head_prefer_markup, and head_view_href
(respectively).
* docs/template-authoring-guide.html,
* templates/include/log_header.ezt
Track template variable renames.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1833 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-03-04 17:25:14 +03:00
|
|
|
<td>Indicates whether to make the default sticky tag file link a
|
|
|
|
link to the markup page instead of the checkout page.</td>
|
2005-12-09 11:17:27 +03:00
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tag_view_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for markup view of the file at the currently selected sticky
|
|
|
|
tag. CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">tags</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>List of tags that in the current file. CVS only.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">tags.rev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision number for a non-branch tag, or the latest revision
|
|
|
|
number on the branch for a branch tag.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">tags.name</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Tag name</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
2007-07-26 22:55:15 +04:00
|
|
|
<h3 id="variables-query_results">Revision History Query Results View
|
|
|
|
(query_results.ezt, rss.ezt)</h3>
|
2005-11-15 07:56:12 +03:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
|
|
|
<a href="#variables-common">COMMON</a> variable set</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">backout_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for a page that shows a list of commands that can be applied
|
|
|
|
to a working copy to revert all the changes returned by the
|
|
|
|
query.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">commits</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>List of commits to files under the current directory that meet
|
|
|
|
the query criteria.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-22 19:55:26 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.author</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Author of the commit.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.files</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>List of files under the current directory affected by the
|
|
|
|
commit.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">commits.files.author</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Author of the commit.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">commits.files.date</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) the change to the file
|
|
|
|
was committed.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">commits.files.dir</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Path of the directory containing the file.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.files.dir_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for directory listing of <var>commits.files.dir</var>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.files.file</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>File name.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">commits.files.rev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision number of the file.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
|
|
|
<td class="varname">commits.files.branch</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>File</td>
|
|
|
|
<td>Branch the commit occurred on.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.files.diff_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL to diff page showing changes since previous file revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.files.log_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for file's log page.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.files.minus</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of lines removed from the file by the commit.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.files.plus</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of lines added to the file by the commit.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel3">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.files.type</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Type of change made to the file by the commit. Possible values:
|
|
|
|
<tt>Change</tt>, <tt>Add</tt>, <tt>Remove</tt></td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-08 21:18:08 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.log</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Commit log message.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-23 16:24:26 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.limited_files</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>True if files list was cut short due to <tt>limit_changes</tt>.</td>
|
|
|
|
</tr>
|
2008-02-25 22:32:21 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.minus</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Total number of lines removed from files in this commit.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">commits.num_files</td>
|
|
|
|
<td>String</td>
|
2008-02-25 22:32:21 +03:00
|
|
|
<td>Total number of files in the <var>commits.files</var> list.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.plus</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of lines added to files in this commit.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-22 19:55:26 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.rev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Commit revision number. Subversion only.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.rss_date</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Date of the commit formatted for RSS.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.rss_url</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Absolute URL of the revision page for the commit. Subversion only.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">commits.short_log</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Truncated commit log message.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">english_query</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Text description of the current query criteria.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-23 16:24:26 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">limit_changes</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Current <tt>limit_changes</tt> value, maximum number of changed files
|
|
|
|
to show per commit.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">limit_changes_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view but with <tt>limit_changes</tt> disabled.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">minus_count</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
2008-02-25 22:32:21 +03:00
|
|
|
<td>Total number of lines removed from all files across all returned
|
|
|
|
commits.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">plus_count</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
2008-02-25 22:32:21 +03:00
|
|
|
<td>Total number of lines added to all files across all returned
|
|
|
|
commits.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">querysort</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Indicates how query results are being sorted. Possible values:
|
|
|
|
<tt>date</tt>, <tt>author</tt>, and <tt>file</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
Fix (to the degree that I believe is reasonable at this time) issue
#433 ("queries return only partial results"). When a database query
is artificially limited by the 'row_limit' setting, inform the user
that the returned data is incomplete.
* lib/cvsdb.py
(CheckinDatabase.CreateSQLQueryString): Add 'detect_leftover'
parameter, used internally to check for a reached query limit.
(CheckinDatabase.RunQuery): Update call to CreateSQLQueryString(),
and check for leftover query response rows. If any are found, set
the appropriate flag on the query object.
(CheckinDatabaseQuery.__init__): Set initial values for new
'executed' and 'limit_reached' members.
(CheckinDatabaseQuery.SetExecuted,
CheckinDatabaseQuery.SetLimitReached,
CheckinDatabaseQuery.GetLimitReached,
CheckinDatabaseQuery.GetCommitList): New functions.
* lib/viewvc.py
(view_query): Use query.GetCommitList() now instead of poking into
the query object directly. Also, check query.GetLimitReached(),
reporting the findings through the data dictionary (via a new
'row_limit_reached' item) to the templates.
* lib/query.py
(run_query): Use query.GetCommitList() now instead of poking into
the query object directly. Now return a 2-tuple of commits and a
limit-reached flag.
(main): Update expectations of run_query() call. Populate
'row_limit_reached' data dictionary item.
* templates/query_results.ezt,
* templates/query.ezt
Display a warning if the query results are incomplete.
* templates/docroot/styles.css
(.vc_warning): New style definition.
* docs/template-authoring-guide.html
Document the new 'row_limit_reached' template item.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2551 8cb11bc2-c004-0410-86c3-e597b4017df7
2011-04-20 18:50:40 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">row_limit_reached</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether the internal database row limit threshold (set
|
|
|
|
via the <code>cvsdb.row_limit</code>
|
|
|
|
and <code>cvsdb.rss_row_limit</code> configuration options) was
|
|
|
|
reached by the query.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">show_branch</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether or not to list branch names in the results. True
|
|
|
|
when query results can include more than a single branch.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">sql</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>SQL string used to query database. Included for debugging
|
|
|
|
purposes.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-query_form">Revision History Query Form View (query_form.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
|
|
|
<a href="#variables-common">COMMON</a> variable set</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">branch</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Query string for filtering results by branch.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">branch_match</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Type of match to perform with <var>branch</var> query string.
|
|
|
|
Valid values: <tt>exact</tt>, <tt>like</tt>, <tt>glob</tt>,
|
|
|
|
<tt>regex</tt>, <tt>notregex</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2007-01-23 19:22:40 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">comment</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Query string for filtering results by log message.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">comment_match</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Type of match to perform with <var>comment</var> query string. Possible
|
|
|
|
values: <tt>exact</tt>, <tt>like</tt>, <tt>glob</tt>,
|
|
|
|
<tt>regex</tt>, <tt>notregex</tt>.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">date</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Option for filtering results by date. Possible values:
|
|
|
|
<tt>hours</tt>, <tt>day</tt>, <tt>week</tt>, <tt>month</tt>,
|
|
|
|
<tt>all</tt>, <tt>explicit</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">dir</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Query string for filtering results by subdirectory.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">dir_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for directory list of current directory.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">file</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Query string for filtering results by file name.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">file_match</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Type of match to perform with <var>file</var> query string.
|
|
|
|
Valid values: <tt>exact</tt>, <tt>like</tt>, <tt>glob</tt>,
|
|
|
|
<tt>regex</tt>, <tt>notregex</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">hours</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If <var>date</var> is <tt>hours</tt>, number of hours back to
|
|
|
|
include results from.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-23 16:24:26 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">limit_changes</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Current <tt>limit_changes</tt> value, maximum number of changed files
|
|
|
|
to show per commit.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">maxdate</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If <var>date</var> is <tt>explicit</tt>, latest date to
|
|
|
|
include results from.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">mindate</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>If <var>date</var> is <tt>explicit</tt>, earliest date to
|
|
|
|
include results from.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">query_action</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for query form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">query_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for query form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">querysort</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Option for sorting query results. Possible values: <tt>date</tt>,
|
|
|
|
<tt>author</tt>, and <tt>file</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">who</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Query string for filtering results by author.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">who_match</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Type of match to perform with <var>who</var> query string. Possible
|
|
|
|
values: <tt>exact</tt>, <tt>like</tt>, <tt>glob</tt>,
|
|
|
|
<tt>regex</tt>, <tt>notregex</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-revision">Revision/ChangeSet View (revision.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
|
|
|
<a href="#variables-common">COMMON</a> variable set</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">ago</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Text description of the time elapsed since <var>date</date>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">author</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Author of the revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">changes</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>List</td>
|
|
|
|
<td>List of paths changed in this revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.action</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Indicates what happened to the path in this revision. Valid
|
|
|
|
values are: <tt>added</tt>, <tt>modified</tt>, <tt>replaced</tt>,
|
|
|
|
and <tt>deleted</tt>.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.copy_path</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Original path if path was copied from somewhere in this
|
|
|
|
revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.copy_rev</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Revision number of original path if path was copied from somewhere
|
|
|
|
in this revision</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.diff_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for diff of changed path against previous revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.is_copy</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether path was copied from another path in this
|
|
|
|
revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.log_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for log view of changed path.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.path</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Changed path.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">changes.pathtype</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Type of changed path. Valid values: <tt>file</tt> or
|
|
|
|
<tt>dir</tt></td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.prop_mods</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether the path's properties changed in this revision</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.text_mods</td>
|
|
|
|
<td>Boolean</td>
|
|
|
|
<td>Indicates whether the path's file contents changed in this
|
|
|
|
revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2005-12-08 21:18:08 +03:00
|
|
|
<td class="varname">changes.view_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for markup view of changed path.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">date</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision date (in UTC if not otherwise configured).</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-23 16:24:26 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">first_changes</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Configured value for <tt>limit_changes</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">first_changes_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view but with <tt>limit_changes</tt> set to the
|
|
|
|
configured value.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">jump_rev_action</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Form action URL for revision jump form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">jump_rev_hidden_values</td>
|
Continuing the endless quest to purge all HTML generation from
ViewVC's core libraries, turn the form hidden-values objects from HTML
strings to iterable objects that templates can use to *make* HTML strings.
* lib/viewvc.py
(Request.get_form): Now prepare hidden values as an iterable list of
objects with .name and .value attributes.
(common_template_data): Don't add 'change_root_action' and
'change_root_hidden_values' data dictionary items.
(prepare_hidden_values): Remove as unused.
* templates/include/diff_form.ezt,
* templates/include/dir_footer.ezt,
* templates/include/dir_header.ezt,
* templates/include/paging.ezt,
* templates/include/pathrev_form.ezt,
* templates/include/sort.ezt,
* templates/diff.ezt,
* templates/log_table.ezt,
* templates/query_form.ezt,
* templates/revision.ezt
Iterate over hidden-values items to generate <input type="hidden"
.../> output.
* docs/upgrading-howto.html,
* docs/template-authoring-guide.html
Note these changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1894 8cb11bc2-c004-0410-86c3-e597b4017df7
2008-05-21 23:51:26 +04:00
|
|
|
<td>List</td>
|
2009-06-15 23:06:26 +04:00
|
|
|
<td>Hidden field name/value pairs for revision jump form.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-23 16:24:26 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">limit_changes</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Current <tt>limit_changes</tt> value, maximum number of changed files
|
|
|
|
to show per commit.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">log</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision log message.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
2005-12-23 16:24:26 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">more_changes</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of changes not being shown due to <tt>limit_changes</tt>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">more_changes_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL for the current view but with <tt>limit_changes</tt> disabled.</td>
|
|
|
|
</tr>
|
2008-12-19 22:43:18 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">num_changes</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Number of paths changed in this revision.</td>
|
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">next_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for revision page of the next revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">prev_href</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>URL for revision page of the previous revision.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">rev</td>
|
2005-12-08 21:18:08 +03:00
|
|
|
<td>String</td>
|
|
|
|
<td>Revision number.</td>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h3">
|
|
|
|
<h3 id="variables-roots">Root Listing View (roots.ezt)</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Variable</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="include">
|
|
|
|
<td colspan="3">Includes all variables from the
|
|
|
|
<a href="#variables-common">COMMON</a> variable set</td>
|
|
|
|
</tr>
|
2008-04-17 23:52:30 +04:00
|
|
|
<tr class="varlevel1">
|
|
|
|
<td class="varname">roots</td>
|
|
|
|
<td>List</td>
|
|
|
|
<td>Set of configured viewable repositories.</td>
|
|
|
|
</tr>
|
2011-02-18 18:11:01 +03:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.ago</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Textual description of the time since <var>roots.date</var>.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.author</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Username of the last modifier of the root.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">root.date</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Date (in UTC if not otherwise configured) of the last
|
|
|
|
modification of the root.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of root directory view for a configured repository.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.log</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Log message of last modification to the root.</td>
|
|
|
|
</tr>
|
2011-10-28 23:24:37 +04:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.log_href</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>URL of log revision view for the top-most (root) directory of
|
|
|
|
the root (repository).</td>
|
|
|
|
</tr>
|
2008-04-17 23:52:30 +04:00
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.name</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Name of a configured repository.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.path</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Server-local location of a configured repository. WARNING: Revealing
|
|
|
|
information to untrusted guests about the details of your server
|
|
|
|
configuration can have negative security implications. Use this
|
|
|
|
token at your own risk.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2011-02-18 18:11:01 +03:00
|
|
|
<td class="varname">roots.rev</td>
|
2008-04-17 23:52:30 +04:00
|
|
|
<td>String</td>
|
2011-02-18 18:11:01 +03:00
|
|
|
<td>Youngest revision of the root.</td>
|
2008-04-17 23:52:30 +04:00
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
2011-02-18 18:11:01 +03:00
|
|
|
<td class="varname">roots.short_log</td>
|
2008-04-17 23:52:30 +04:00
|
|
|
<td>String</td>
|
2011-02-18 18:11:01 +03:00
|
|
|
<td>Log message of last modification to the root, truncated to
|
|
|
|
contain no more than the number of characters specified by
|
|
|
|
the <code>short_log_len</code> configuration option.</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="varlevel2">
|
|
|
|
<td class="varname">roots.type</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Version control type of a configured repository. Valid
|
|
|
|
values: <tt>cvs</tt>, <tt>svn</tt>.</td>
|
2008-04-17 23:52:30 +04:00
|
|
|
</tr>
|
2005-11-15 07:56:12 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|