viewvc-4intranet/templates/log.ezt

142 lines
4.2 KiB
Plaintext
Raw Normal View History

New URL scheme for Subversion. The problem with the old scheme is it doesn't have a concept of a "sticky" revision. So if you are looking at version 10 of a directory, and click to view a file inside which was last modified in version 6, the fact you were looking at version 10 of the parent directory is not recorded anywhere, and the "Parent Directory" links on the markup page will take you to a version 6 directory listing instead of the listing you came from. This problem exists all over ViewCVS, not just in directory listings, and the result of it is that when you browse a repository by following the provided links you get sent further and further back into the history, all the while seeing incomplete log pages and outdated directory listings which you never asked for. The new URL scheme works by introducing a new 'pathrev' sticky variable and is described in detail in a comment in the _orig_path function in lib/viewcvs.py. The scheme is not backwards compatabile with all (or maybe even most) old subversion URLs. Specifically, any old URL referring to a path that no longer exists in the HEAD will not work. Other subversion URLs will still work. It is still possible to add backwards compatibility. We'd have to rename the rev parameter to something else, so we could know that all URLs with 'rev' in them are old style URLs which need to be redirected. I don't know if it's worth doing this though. This is not an isolated change. I've tried to unite the Subversion "sticky revision" with the present "only_with_tag" logic for CVS. And since I had to go over viewcvs.py with a fine-toothed comb implementing these things, there are also some miscellaneous cleanups there. * lib/vclib/bincvs/__init__.py (_file_log): change filtering so when matching revisions to tag, includes all preceding revisions, not just tag revision itself * lib/viewcvs.py (_sticky_vars): 'only_with_tag' is gone, so change this back into a list with no span-roots values (request.run_viewcvs): read new 'pathrev' parameter and use it when calling repos.itemtype (request.get_link): add 'pathrev' parameter to urls, restore update _sticky_vars loop (_legal_params, prep_tags, build_commit): replace 'only_with_tag' with 'pathrev' (_orig_path): new function (nav_path, common_template_data): stop adding 'rev' parameters to links removed unused 'roots_href' template variable (nav_header_data): add new 'revision_href', 'orig_path', 'orig_href' template variables for use in markup and annotate views (view_markup, view_checkout, view_annotate, setup_diff, generate_tarball, download_tarball): use 'pathrev' when looking up file revision (view_directory): use 'pathrev' when looking up directory revisions instead of 'rev'. stop adding 'rev' to links. add template variables: pathrev, pathrev_action, pathrev_hidden_values. remove unused template variables: num_files, rev, view_tag, has_tags, main_href, jump_rev_action, jump_rev_hidden_values, row.show_log. (view_log): use 'pathrev' to retrieve log information instead of 'rev'. stop linking to original paths of copied files. add template variables: entry.orig_path, entry.orig_href, default_branch, pathrev, pathrev_action, pathrev_hidden_values, branch_tags, plain_tags. remove template variables: entry.filename, entry.prev_path, branch, path_selected, view_tag, branch_names, branch_select_action, branch_select_hidden_values. (view_cvsgraph): use common_template_data instead of nav_header_data, 'pathrev' instead of 'only_with tag' (view_diff): use common_template_data instead of nav_header_data add template variables: path_left, path_right (view_revision): use 'pathrev' instead of 'rev' in links * templates/include/dir_header.ezt rearrange header and add sticky tag/revision row * templates/include/dir_footer.ezt remove tag selector * templates/include/pathrev_form.ezt new, sticky tag/revision selector form based on code from dir_footer.ezt * templates/include/branch.ezt * templates/include/branch_form.ezt * templates/include/view_tag.ezt removed * templates/include/log_header.ezt new, based on branch.ezt and view_tag.ezt * templates/include/log_footer.ezt new * templates/include/log.ezt * templates/include/log_table.ezt include log_header.ezt and log_footer.ezt * templates/include/annotate.ezt * templates/include/diff.ezt * templates/include/markup.ezt show original paths and add view_revision links * cvsgraph.conf.dist replace only_with_tag parameter with pathrev * website/template-authoring-guide.html update template variable information git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1145 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-11-03 16:31:02 +03:00
[include "include/log_header.ezt"]
[define first_revision][end]
[define last_revision][end]
[for entries]
[if-index entries first][define first_revision][entries.rev][end][end]
[if-index entries last][define last_revision][entries.rev][end][end]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<div>
<hr />
[is entries.state "dead"]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
Revision <strong>[entries.rev]</strong>
[else]
<a name="rev[entries.rev]"></a>
[for entries.tag_names]<a name="[entries.tag_names]"></a>
[end]
[for entries.branch_names]<a name="[entries.branch_names]"></a>
[end]
New URL scheme for Subversion. The problem with the old scheme is it doesn't have a concept of a "sticky" revision. So if you are looking at version 10 of a directory, and click to view a file inside which was last modified in version 6, the fact you were looking at version 10 of the parent directory is not recorded anywhere, and the "Parent Directory" links on the markup page will take you to a version 6 directory listing instead of the listing you came from. This problem exists all over ViewCVS, not just in directory listings, and the result of it is that when you browse a repository by following the provided links you get sent further and further back into the history, all the while seeing incomplete log pages and outdated directory listings which you never asked for. The new URL scheme works by introducing a new 'pathrev' sticky variable and is described in detail in a comment in the _orig_path function in lib/viewcvs.py. The scheme is not backwards compatabile with all (or maybe even most) old subversion URLs. Specifically, any old URL referring to a path that no longer exists in the HEAD will not work. Other subversion URLs will still work. It is still possible to add backwards compatibility. We'd have to rename the rev parameter to something else, so we could know that all URLs with 'rev' in them are old style URLs which need to be redirected. I don't know if it's worth doing this though. This is not an isolated change. I've tried to unite the Subversion "sticky revision" with the present "only_with_tag" logic for CVS. And since I had to go over viewcvs.py with a fine-toothed comb implementing these things, there are also some miscellaneous cleanups there. * lib/vclib/bincvs/__init__.py (_file_log): change filtering so when matching revisions to tag, includes all preceding revisions, not just tag revision itself * lib/viewcvs.py (_sticky_vars): 'only_with_tag' is gone, so change this back into a list with no span-roots values (request.run_viewcvs): read new 'pathrev' parameter and use it when calling repos.itemtype (request.get_link): add 'pathrev' parameter to urls, restore update _sticky_vars loop (_legal_params, prep_tags, build_commit): replace 'only_with_tag' with 'pathrev' (_orig_path): new function (nav_path, common_template_data): stop adding 'rev' parameters to links removed unused 'roots_href' template variable (nav_header_data): add new 'revision_href', 'orig_path', 'orig_href' template variables for use in markup and annotate views (view_markup, view_checkout, view_annotate, setup_diff, generate_tarball, download_tarball): use 'pathrev' when looking up file revision (view_directory): use 'pathrev' when looking up directory revisions instead of 'rev'. stop adding 'rev' to links. add template variables: pathrev, pathrev_action, pathrev_hidden_values. remove unused template variables: num_files, rev, view_tag, has_tags, main_href, jump_rev_action, jump_rev_hidden_values, row.show_log. (view_log): use 'pathrev' to retrieve log information instead of 'rev'. stop linking to original paths of copied files. add template variables: entry.orig_path, entry.orig_href, default_branch, pathrev, pathrev_action, pathrev_hidden_values, branch_tags, plain_tags. remove template variables: entry.filename, entry.prev_path, branch, path_selected, view_tag, branch_names, branch_select_action, branch_select_hidden_values. (view_cvsgraph): use common_template_data instead of nav_header_data, 'pathrev' instead of 'only_with tag' (view_diff): use common_template_data instead of nav_header_data add template variables: path_left, path_right (view_revision): use 'pathrev' instead of 'rev' in links * templates/include/dir_header.ezt rearrange header and add sticky tag/revision row * templates/include/dir_footer.ezt remove tag selector * templates/include/pathrev_form.ezt new, sticky tag/revision selector form based on code from dir_footer.ezt * templates/include/branch.ezt * templates/include/branch_form.ezt * templates/include/view_tag.ezt removed * templates/include/log_header.ezt new, based on branch.ezt and view_tag.ezt * templates/include/log_footer.ezt new * templates/include/log.ezt * templates/include/log_table.ezt include log_header.ezt and log_footer.ezt * templates/include/annotate.ezt * templates/include/diff.ezt * templates/include/markup.ezt show original paths and add view_revision links * cvsgraph.conf.dist replace only_with_tag parameter with pathrev * website/template-authoring-guide.html update template variable information git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1145 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-11-03 16:31:02 +03:00
Revision [is roottype "svn"]<a href="[entries.revision_href]"><strong>[entries.rev]</strong></a>[else]<strong>[entries.rev]</strong>[end] -
[is pathtype "file"]
(<a href="[entries.view_href]">view</a>)
[else]
<a href="[entries.view_href]">Directory Listing</a>
[end]
New URL scheme for Subversion. The problem with the old scheme is it doesn't have a concept of a "sticky" revision. So if you are looking at version 10 of a directory, and click to view a file inside which was last modified in version 6, the fact you were looking at version 10 of the parent directory is not recorded anywhere, and the "Parent Directory" links on the markup page will take you to a version 6 directory listing instead of the listing you came from. This problem exists all over ViewCVS, not just in directory listings, and the result of it is that when you browse a repository by following the provided links you get sent further and further back into the history, all the while seeing incomplete log pages and outdated directory listings which you never asked for. The new URL scheme works by introducing a new 'pathrev' sticky variable and is described in detail in a comment in the _orig_path function in lib/viewcvs.py. The scheme is not backwards compatabile with all (or maybe even most) old subversion URLs. Specifically, any old URL referring to a path that no longer exists in the HEAD will not work. Other subversion URLs will still work. It is still possible to add backwards compatibility. We'd have to rename the rev parameter to something else, so we could know that all URLs with 'rev' in them are old style URLs which need to be redirected. I don't know if it's worth doing this though. This is not an isolated change. I've tried to unite the Subversion "sticky revision" with the present "only_with_tag" logic for CVS. And since I had to go over viewcvs.py with a fine-toothed comb implementing these things, there are also some miscellaneous cleanups there. * lib/vclib/bincvs/__init__.py (_file_log): change filtering so when matching revisions to tag, includes all preceding revisions, not just tag revision itself * lib/viewcvs.py (_sticky_vars): 'only_with_tag' is gone, so change this back into a list with no span-roots values (request.run_viewcvs): read new 'pathrev' parameter and use it when calling repos.itemtype (request.get_link): add 'pathrev' parameter to urls, restore update _sticky_vars loop (_legal_params, prep_tags, build_commit): replace 'only_with_tag' with 'pathrev' (_orig_path): new function (nav_path, common_template_data): stop adding 'rev' parameters to links removed unused 'roots_href' template variable (nav_header_data): add new 'revision_href', 'orig_path', 'orig_href' template variables for use in markup and annotate views (view_markup, view_checkout, view_annotate, setup_diff, generate_tarball, download_tarball): use 'pathrev' when looking up file revision (view_directory): use 'pathrev' when looking up directory revisions instead of 'rev'. stop adding 'rev' to links. add template variables: pathrev, pathrev_action, pathrev_hidden_values. remove unused template variables: num_files, rev, view_tag, has_tags, main_href, jump_rev_action, jump_rev_hidden_values, row.show_log. (view_log): use 'pathrev' to retrieve log information instead of 'rev'. stop linking to original paths of copied files. add template variables: entry.orig_path, entry.orig_href, default_branch, pathrev, pathrev_action, pathrev_hidden_values, branch_tags, plain_tags. remove template variables: entry.filename, entry.prev_path, branch, path_selected, view_tag, branch_names, branch_select_action, branch_select_hidden_values. (view_cvsgraph): use common_template_data instead of nav_header_data, 'pathrev' instead of 'only_with tag' (view_diff): use common_template_data instead of nav_header_data add template variables: path_left, path_right (view_revision): use 'pathrev' instead of 'rev' in links * templates/include/dir_header.ezt rearrange header and add sticky tag/revision row * templates/include/dir_footer.ezt remove tag selector * templates/include/pathrev_form.ezt new, sticky tag/revision selector form based on code from dir_footer.ezt * templates/include/branch.ezt * templates/include/branch_form.ezt * templates/include/view_tag.ezt removed * templates/include/log_header.ezt new, based on branch.ezt and view_tag.ezt * templates/include/log_footer.ezt new * templates/include/log.ezt * templates/include/log_table.ezt include log_header.ezt and log_footer.ezt * templates/include/annotate.ezt * templates/include/diff.ezt * templates/include/markup.ezt show original paths and add view_revision links * cvsgraph.conf.dist replace only_with_tag parameter with pathrev * website/template-authoring-guide.html update template variable information git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1145 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-11-03 16:31:02 +03:00
[if-any entries.download_href](<a href="[entries.download_href]">download</a>)[end]
[if-any entries.download_text_href](<a href="[entries.download_text_href]">as text</a>)[end]
[if-any entries.annotate_href](<a href="[entries.annotate_href]">annotate</a>)[end]
New URL scheme for Subversion. The problem with the old scheme is it doesn't have a concept of a "sticky" revision. So if you are looking at version 10 of a directory, and click to view a file inside which was last modified in version 6, the fact you were looking at version 10 of the parent directory is not recorded anywhere, and the "Parent Directory" links on the markup page will take you to a version 6 directory listing instead of the listing you came from. This problem exists all over ViewCVS, not just in directory listings, and the result of it is that when you browse a repository by following the provided links you get sent further and further back into the history, all the while seeing incomplete log pages and outdated directory listings which you never asked for. The new URL scheme works by introducing a new 'pathrev' sticky variable and is described in detail in a comment in the _orig_path function in lib/viewcvs.py. The scheme is not backwards compatabile with all (or maybe even most) old subversion URLs. Specifically, any old URL referring to a path that no longer exists in the HEAD will not work. Other subversion URLs will still work. It is still possible to add backwards compatibility. We'd have to rename the rev parameter to something else, so we could know that all URLs with 'rev' in them are old style URLs which need to be redirected. I don't know if it's worth doing this though. This is not an isolated change. I've tried to unite the Subversion "sticky revision" with the present "only_with_tag" logic for CVS. And since I had to go over viewcvs.py with a fine-toothed comb implementing these things, there are also some miscellaneous cleanups there. * lib/vclib/bincvs/__init__.py (_file_log): change filtering so when matching revisions to tag, includes all preceding revisions, not just tag revision itself * lib/viewcvs.py (_sticky_vars): 'only_with_tag' is gone, so change this back into a list with no span-roots values (request.run_viewcvs): read new 'pathrev' parameter and use it when calling repos.itemtype (request.get_link): add 'pathrev' parameter to urls, restore update _sticky_vars loop (_legal_params, prep_tags, build_commit): replace 'only_with_tag' with 'pathrev' (_orig_path): new function (nav_path, common_template_data): stop adding 'rev' parameters to links removed unused 'roots_href' template variable (nav_header_data): add new 'revision_href', 'orig_path', 'orig_href' template variables for use in markup and annotate views (view_markup, view_checkout, view_annotate, setup_diff, generate_tarball, download_tarball): use 'pathrev' when looking up file revision (view_directory): use 'pathrev' when looking up directory revisions instead of 'rev'. stop adding 'rev' to links. add template variables: pathrev, pathrev_action, pathrev_hidden_values. remove unused template variables: num_files, rev, view_tag, has_tags, main_href, jump_rev_action, jump_rev_hidden_values, row.show_log. (view_log): use 'pathrev' to retrieve log information instead of 'rev'. stop linking to original paths of copied files. add template variables: entry.orig_path, entry.orig_href, default_branch, pathrev, pathrev_action, pathrev_hidden_values, branch_tags, plain_tags. remove template variables: entry.filename, entry.prev_path, branch, path_selected, view_tag, branch_names, branch_select_action, branch_select_hidden_values. (view_cvsgraph): use common_template_data instead of nav_header_data, 'pathrev' instead of 'only_with tag' (view_diff): use common_template_data instead of nav_header_data add template variables: path_left, path_right (view_revision): use 'pathrev' instead of 'rev' in links * templates/include/dir_header.ezt rearrange header and add sticky tag/revision row * templates/include/dir_footer.ezt remove tag selector * templates/include/pathrev_form.ezt new, sticky tag/revision selector form based on code from dir_footer.ezt * templates/include/branch.ezt * templates/include/branch_form.ezt * templates/include/view_tag.ezt removed * templates/include/log_header.ezt new, based on branch.ezt and view_tag.ezt * templates/include/log_footer.ezt new * templates/include/log.ezt * templates/include/log_table.ezt include log_header.ezt and log_footer.ezt * templates/include/annotate.ezt * templates/include/diff.ezt * templates/include/markup.ezt show original paths and add view_revision links * cvsgraph.conf.dist replace only_with_tag parameter with pathrev * website/template-authoring-guide.html update template variable information git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1145 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-11-03 16:31:02 +03:00
[is pathtype "file"]
[# if you don't want to allow select for diffs then remove this section]
[is entries.rev rev_selected]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
- <strong>[[]selected]</strong>
[else]
- <a href="[entries.sel_for_diff_href]">[[]select for diffs]</a>
[end]
[end]
[end]
[if-any entries.vendor_branch]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<em>(vendor branch)</em>
[end]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br />
Added some new fields to the Subversion log view and fixed the download/view/markup links for old revisions of copied files. The new fields are "Other changed files" which is a list of links to other files changed in the same revision, "Copied from" which is displayed for file revisions that are the result of a copy operations, and "Filename" which is displayed for older file revisions which precede a copy operation. * viewcvs.conf.dist * lib/config.py (set_defaults): added "show_changed_paths" option to determine whether or not to retrieve and display the new information * lib/viewcvs.py (run_viewcvs): now passes show_changed_paths option to newly created subversion repository objects (view_log_svn): changed the way download/view/markup links are generated and added code to generate links for new fields * templates/log.ezt: template additions * lib/vclib/svn/__init__.py (LogEntry.__init__): added extra arguments for new fields (ChangedPathEntry): new class to hold information about the changed paths associated with a revision (LogReceiver.__init__): added some new members to hold more state for the callback function (LogReceiver.receive): added some code to crawl through the "paths" hash and save useful information (get_logs): changed to work with new LogReciever constructor (fetch_log): changed call to repos.svn_repos_get_logs() to pass true for the "discover_changed_paths" argument. moved fs.file_length() call into LogReceiver.__init__ git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@675 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-07-03 10:20:24 +04:00
[is roottype "svn"]
[if-index entries last]Added[else]Modified[end]
Added some new fields to the Subversion log view and fixed the download/view/markup links for old revisions of copied files. The new fields are "Other changed files" which is a list of links to other files changed in the same revision, "Copied from" which is displayed for file revisions that are the result of a copy operations, and "Filename" which is displayed for older file revisions which precede a copy operation. * viewcvs.conf.dist * lib/config.py (set_defaults): added "show_changed_paths" option to determine whether or not to retrieve and display the new information * lib/viewcvs.py (run_viewcvs): now passes show_changed_paths option to newly created subversion repository objects (view_log_svn): changed the way download/view/markup links are generated and added code to generate links for new fields * templates/log.ezt: template additions * lib/vclib/svn/__init__.py (LogEntry.__init__): added extra arguments for new fields (ChangedPathEntry): new class to hold information about the changed paths associated with a revision (LogReceiver.__init__): added some new members to hold more state for the callback function (LogReceiver.receive): added some code to crawl through the "paths" hash and save useful information (get_logs): changed to work with new LogReciever constructor (fetch_log): changed call to repos.svn_repos_get_logs() to pass true for the "discover_changed_paths" argument. moved fs.file_length() call into LogReceiver.__init__ git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@675 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-07-03 10:20:24 +04:00
[end]
<em>[entries.date]</em> ([entries.ago] ago) by <em>[entries.author]</em>
New URL scheme for Subversion. The problem with the old scheme is it doesn't have a concept of a "sticky" revision. So if you are looking at version 10 of a directory, and click to view a file inside which was last modified in version 6, the fact you were looking at version 10 of the parent directory is not recorded anywhere, and the "Parent Directory" links on the markup page will take you to a version 6 directory listing instead of the listing you came from. This problem exists all over ViewCVS, not just in directory listings, and the result of it is that when you browse a repository by following the provided links you get sent further and further back into the history, all the while seeing incomplete log pages and outdated directory listings which you never asked for. The new URL scheme works by introducing a new 'pathrev' sticky variable and is described in detail in a comment in the _orig_path function in lib/viewcvs.py. The scheme is not backwards compatabile with all (or maybe even most) old subversion URLs. Specifically, any old URL referring to a path that no longer exists in the HEAD will not work. Other subversion URLs will still work. It is still possible to add backwards compatibility. We'd have to rename the rev parameter to something else, so we could know that all URLs with 'rev' in them are old style URLs which need to be redirected. I don't know if it's worth doing this though. This is not an isolated change. I've tried to unite the Subversion "sticky revision" with the present "only_with_tag" logic for CVS. And since I had to go over viewcvs.py with a fine-toothed comb implementing these things, there are also some miscellaneous cleanups there. * lib/vclib/bincvs/__init__.py (_file_log): change filtering so when matching revisions to tag, includes all preceding revisions, not just tag revision itself * lib/viewcvs.py (_sticky_vars): 'only_with_tag' is gone, so change this back into a list with no span-roots values (request.run_viewcvs): read new 'pathrev' parameter and use it when calling repos.itemtype (request.get_link): add 'pathrev' parameter to urls, restore update _sticky_vars loop (_legal_params, prep_tags, build_commit): replace 'only_with_tag' with 'pathrev' (_orig_path): new function (nav_path, common_template_data): stop adding 'rev' parameters to links removed unused 'roots_href' template variable (nav_header_data): add new 'revision_href', 'orig_path', 'orig_href' template variables for use in markup and annotate views (view_markup, view_checkout, view_annotate, setup_diff, generate_tarball, download_tarball): use 'pathrev' when looking up file revision (view_directory): use 'pathrev' when looking up directory revisions instead of 'rev'. stop adding 'rev' to links. add template variables: pathrev, pathrev_action, pathrev_hidden_values. remove unused template variables: num_files, rev, view_tag, has_tags, main_href, jump_rev_action, jump_rev_hidden_values, row.show_log. (view_log): use 'pathrev' to retrieve log information instead of 'rev'. stop linking to original paths of copied files. add template variables: entry.orig_path, entry.orig_href, default_branch, pathrev, pathrev_action, pathrev_hidden_values, branch_tags, plain_tags. remove template variables: entry.filename, entry.prev_path, branch, path_selected, view_tag, branch_names, branch_select_action, branch_select_hidden_values. (view_cvsgraph): use common_template_data instead of nav_header_data, 'pathrev' instead of 'only_with tag' (view_diff): use common_template_data instead of nav_header_data add template variables: path_left, path_right (view_revision): use 'pathrev' instead of 'rev' in links * templates/include/dir_header.ezt rearrange header and add sticky tag/revision row * templates/include/dir_footer.ezt remove tag selector * templates/include/pathrev_form.ezt new, sticky tag/revision selector form based on code from dir_footer.ezt * templates/include/branch.ezt * templates/include/branch_form.ezt * templates/include/view_tag.ezt removed * templates/include/log_header.ezt new, based on branch.ezt and view_tag.ezt * templates/include/log_footer.ezt new * templates/include/log.ezt * templates/include/log_table.ezt include log_header.ezt and log_footer.ezt * templates/include/annotate.ezt * templates/include/diff.ezt * templates/include/markup.ezt show original paths and add view_revision links * cvsgraph.conf.dist replace only_with_tag parameter with pathrev * website/template-authoring-guide.html update template variable information git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1145 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-11-03 16:31:02 +03:00
[if-any entries.orig_path]
<br />Original Path: <a href="[entries.orig_href]"><em>[entries.orig_path]</em></a>
New URL scheme for Subversion. The problem with the old scheme is it doesn't have a concept of a "sticky" revision. So if you are looking at version 10 of a directory, and click to view a file inside which was last modified in version 6, the fact you were looking at version 10 of the parent directory is not recorded anywhere, and the "Parent Directory" links on the markup page will take you to a version 6 directory listing instead of the listing you came from. This problem exists all over ViewCVS, not just in directory listings, and the result of it is that when you browse a repository by following the provided links you get sent further and further back into the history, all the while seeing incomplete log pages and outdated directory listings which you never asked for. The new URL scheme works by introducing a new 'pathrev' sticky variable and is described in detail in a comment in the _orig_path function in lib/viewcvs.py. The scheme is not backwards compatabile with all (or maybe even most) old subversion URLs. Specifically, any old URL referring to a path that no longer exists in the HEAD will not work. Other subversion URLs will still work. It is still possible to add backwards compatibility. We'd have to rename the rev parameter to something else, so we could know that all URLs with 'rev' in them are old style URLs which need to be redirected. I don't know if it's worth doing this though. This is not an isolated change. I've tried to unite the Subversion "sticky revision" with the present "only_with_tag" logic for CVS. And since I had to go over viewcvs.py with a fine-toothed comb implementing these things, there are also some miscellaneous cleanups there. * lib/vclib/bincvs/__init__.py (_file_log): change filtering so when matching revisions to tag, includes all preceding revisions, not just tag revision itself * lib/viewcvs.py (_sticky_vars): 'only_with_tag' is gone, so change this back into a list with no span-roots values (request.run_viewcvs): read new 'pathrev' parameter and use it when calling repos.itemtype (request.get_link): add 'pathrev' parameter to urls, restore update _sticky_vars loop (_legal_params, prep_tags, build_commit): replace 'only_with_tag' with 'pathrev' (_orig_path): new function (nav_path, common_template_data): stop adding 'rev' parameters to links removed unused 'roots_href' template variable (nav_header_data): add new 'revision_href', 'orig_path', 'orig_href' template variables for use in markup and annotate views (view_markup, view_checkout, view_annotate, setup_diff, generate_tarball, download_tarball): use 'pathrev' when looking up file revision (view_directory): use 'pathrev' when looking up directory revisions instead of 'rev'. stop adding 'rev' to links. add template variables: pathrev, pathrev_action, pathrev_hidden_values. remove unused template variables: num_files, rev, view_tag, has_tags, main_href, jump_rev_action, jump_rev_hidden_values, row.show_log. (view_log): use 'pathrev' to retrieve log information instead of 'rev'. stop linking to original paths of copied files. add template variables: entry.orig_path, entry.orig_href, default_branch, pathrev, pathrev_action, pathrev_hidden_values, branch_tags, plain_tags. remove template variables: entry.filename, entry.prev_path, branch, path_selected, view_tag, branch_names, branch_select_action, branch_select_hidden_values. (view_cvsgraph): use common_template_data instead of nav_header_data, 'pathrev' instead of 'only_with tag' (view_diff): use common_template_data instead of nav_header_data add template variables: path_left, path_right (view_revision): use 'pathrev' instead of 'rev' in links * templates/include/dir_header.ezt rearrange header and add sticky tag/revision row * templates/include/dir_footer.ezt remove tag selector * templates/include/pathrev_form.ezt new, sticky tag/revision selector form based on code from dir_footer.ezt * templates/include/branch.ezt * templates/include/branch_form.ezt * templates/include/view_tag.ezt removed * templates/include/log_header.ezt new, based on branch.ezt and view_tag.ezt * templates/include/log_footer.ezt new * templates/include/log.ezt * templates/include/log_table.ezt include log_header.ezt and log_footer.ezt * templates/include/annotate.ezt * templates/include/diff.ezt * templates/include/markup.ezt show original paths and add view_revision links * cvsgraph.conf.dist replace only_with_tag parameter with pathrev * website/template-authoring-guide.html update template variable information git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1145 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-11-03 16:31:02 +03:00
[end]
[if-any entries.branches]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br />Branch:
[for entries.branches]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<a href="[entries.branches.href]"><strong>[entries.branches.name]</strong></a>[if-index entries.branches last][else],[end]
[end]
[end]
[if-any entries.tags]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br />CVS Tags:
[for entries.tags]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<a href="[entries.tags.href]"><strong>[entries.tags.name]</strong></a>[if-index entries.tags last][else],[end]
[end]
[end]
[if-any entries.branch_points]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br />Branch point for:
[for entries.branch_points]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<a href="[entries.branch_points.href]"><strong>[entries.branch_points.name]</strong></a>[if-index entries.branch_points last][else],[end]
[end]
[end]
[if-any entries.prev]
[if-any entries.changed]
[is roottype "cvs"]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br />Changes since <strong>[entries.prev]: [entries.changed] lines</strong>
[end]
[end]
[end]
[is roottype "svn"]
[if-any entries.size]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br />File length: [entries.size] byte(s)
[end]
Added some new fields to the Subversion log view and fixed the download/view/markup links for old revisions of copied files. The new fields are "Other changed files" which is a list of links to other files changed in the same revision, "Copied from" which is displayed for file revisions that are the result of a copy operations, and "Filename" which is displayed for older file revisions which precede a copy operation. * viewcvs.conf.dist * lib/config.py (set_defaults): added "show_changed_paths" option to determine whether or not to retrieve and display the new information * lib/viewcvs.py (run_viewcvs): now passes show_changed_paths option to newly created subversion repository objects (view_log_svn): changed the way download/view/markup links are generated and added code to generate links for new fields * templates/log.ezt: template additions * lib/vclib/svn/__init__.py (LogEntry.__init__): added extra arguments for new fields (ChangedPathEntry): new class to hold information about the changed paths associated with a revision (LogReceiver.__init__): added some new members to hold more state for the callback function (LogReceiver.receive): added some code to crawl through the "paths" hash and save useful information (get_logs): changed to work with new LogReciever constructor (fetch_log): changed call to repos.svn_repos_get_logs() to pass true for the "discover_changed_paths" argument. moved fs.file_length() call into LogReceiver.__init__ git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@675 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-07-03 10:20:24 +04:00
[if-any entries.copy_path]
<br />Copied from: <a href="[entries.copy_href]"><em>[entries.copy_path]</em></a> revision [entries.copy_rev]
Added some new fields to the Subversion log view and fixed the download/view/markup links for old revisions of copied files. The new fields are "Other changed files" which is a list of links to other files changed in the same revision, "Copied from" which is displayed for file revisions that are the result of a copy operations, and "Filename" which is displayed for older file revisions which precede a copy operation. * viewcvs.conf.dist * lib/config.py (set_defaults): added "show_changed_paths" option to determine whether or not to retrieve and display the new information * lib/viewcvs.py (run_viewcvs): now passes show_changed_paths option to newly created subversion repository objects (view_log_svn): changed the way download/view/markup links are generated and added code to generate links for new fields * templates/log.ezt: template additions * lib/vclib/svn/__init__.py (LogEntry.__init__): added extra arguments for new fields (ChangedPathEntry): new class to hold information about the changed paths associated with a revision (LogReceiver.__init__): added some new members to hold more state for the callback function (LogReceiver.receive): added some code to crawl through the "paths" hash and save useful information (get_logs): changed to work with new LogReciever constructor (fetch_log): changed call to repos.svn_repos_get_logs() to pass true for the "discover_changed_paths" argument. moved fs.file_length() call into LogReceiver.__init__ git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@675 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-07-03 10:20:24 +04:00
[end]
[end]
[is entries.state "dead"]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br /><strong><em>FILE REMOVED</em></strong>
[else]
[is pathtype "file"]
[if-any entries.prev]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
<br />Diff to <a href="[entries.diff_to_prev_href]">previous [entries.prev]</a>
[if-any human_readable]
[else]
(<a href="[entries.diff_to_prev_href]&amp;diff_format=h">colored</a>)
[end]
[end]
[is roottype "cvs"]
[if-any entries.branch_point]
, to <a href="[entries.diff_to_branch_href]">branch point [entries.branch_point]</a>
[if-any human_readable]
[else]
(<a href="[entries.diff_to_branch_href]&amp;diff_format=h">colored</a>)
[end]
[end]
[if-any entries.next_main]
, to <a href="[entries.diff_to_main_href]">next main [entries.next_main]</a>
[if-any human_readable]
[else]
(<a href="[entries.diff_to_main_href]&amp;diff_format=h">colored</a>)
[end]
[end]
[end]
[if-any entries.diff_to_sel_href]
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
[if-any entries.prev], [else]<br />Diff[end]
to <a href="[entries.diff_to_sel_href]">selected [rev_selected]</a>
[if-any human_readable]
[else]
(<a href="[entries.diff_to_sel_href]&amp;diff_format=h">colored</a>)
[end]
[end]
[end]
[end]
Update template authoring guide and make template cleanups. * lib/viewcvs.py (get_file_view_info): get rid of viewable return value (nav_header_data): get rid of "viewable" template variable (view_directory): rename "entries.viewable" variable to "entries.prefer_markup" rename "selection_form" variable to "search_re_form" rename "search_tag_action" variable to "search_action" rename "search_tag_hidden_values" variable to "search_re_hidden_values" (view_log): rename "entries.html_log" variable to "entries.log" restore value of "entries.next_main" variable to what it was in ViewCVS 0.9.x get rid of "entries.viewable" template variable get rid of "viewable" template variable get rid of "tag_viewable" template variable (view_revision): rename "changes.filename" variable to "changes.path" rename "changes.base_path" variable to "changes.copy_path" rename "changes.base_rev" variable to "changes.copy_rev" (build_commit) rename "commits.desc" variable to "commits.log" get rid of "commits.rev_href" variable and replace with "commits.view_href", "commits.download_href", and "commits.prefer_markup" * templates/include/dir_footer.ezt * templates/include/file_header.ezt * templates/dir_new.ezt * templates/directory.ezt * templates/log.ezt * templates/log_table.ezt * templates/query.ezt * templates/query_results.ezt * templates/revision.ezt update templates for changed variables * CHANGES fix blurb about paging * viewvc.org/upgrading.html update information about 0.9.x variables * viewvc.org/template-authoring-guide.html fill it out git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1176 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-12-08 21:18:08 +03:00
<pre class="vc_log">[entries.log]</pre>
This patch (mostly by Marten Thavenius) upgrades ViewCVS to XHTML 1.0 Strict. Changes have been made in the EZT templates, the CSS files, HTML code embedded in the Python files as well as in the help files. The original code structure and design is the very same. No other improvements have been made to the browser code and it still uses the old layout tables to create the page grid. Apart from the XHTML/CSS code changes, the patch adds an argument (-x x) for CVSGraph in viewcvs.py in the view_cvsgraph function to tell CVSGraph to generate XHTML code. For Mozilla/Firefox to recognize the id attribute in the image map generated, the content-type must be set to application/xhtml+xml (see https://bugzilla.mozilla.org/show_bug.cgi?id=109445). This patch does however not change the content-type, but uses an ugly hack to make the CVSGraph output work in Mozilla with the current text/html content-type: a name attribute is merged into the id attribute in the map_name defined in the cvsgraph.conf.dist file. The XHTML code does not contain the standard XML declaration, just the XHTML 1.0 Strict Doctype. This is to keep ViewCVS as encoding agnostic as before and let the browser decide which encoding to use. An XML file without the encoding declared must be interpreted as UTF-8 (or UTF-16 if the byte order mark is included). * viewcvs/cvsgraph.conf.dist Add name="" hack to the 'map_name' variable so Mozilla/Firefox will work. * viewcvs/lib/ezt.py XHTML-ize sample output. * viewcvs/lib/viewcvs.py XHTML-ize hard-coded output. (view_cvsgraph): Pass "-x x" to cvsgraph to force XHTML production. * viewcvs/lib/blame.py * viewcvs/lib/debug.py * viewcvs/lib/py2html.py * viewcvs/lib/query.py * viewcvs/lib/vclib/bincvs/__init__.py * viewcvs/templates/annotate.ezt * viewcvs/templates/diff.ezt * viewcvs/templates/dir_alternate.ezt * viewcvs/templates/directory.ezt * viewcvs/templates/error.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/query_form.ezt * viewcvs/templates/query_results.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/roots.ezt * viewcvs/templates/docroot/help_dirview.html * viewcvs/templates/docroot/help_log.html * viewcvs/templates/docroot/help_logtable.html * viewcvs/templates/docroot/help_query.html * viewcvs/templates/docroot/help_rootview.html * viewcvs/templates/docroot/styles.css * viewcvs/templates/include/branch.ezt * viewcvs/templates/include/branch_form.ezt * viewcvs/templates/include/diff_form.ezt * viewcvs/templates/include/dir_footer.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/file_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt * viewcvs/templates/include/paging.ezt * viewcvs/templates/include/sort.ezt * viewcvs/templates/include/view_tag.ezt XHTML-ize hard-coded output and templatized data. * viewcvs/CHANGES Note this change. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1109 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-09-28 21:06:16 +04:00
</div>
[end]
New URL scheme for Subversion. The problem with the old scheme is it doesn't have a concept of a "sticky" revision. So if you are looking at version 10 of a directory, and click to view a file inside which was last modified in version 6, the fact you were looking at version 10 of the parent directory is not recorded anywhere, and the "Parent Directory" links on the markup page will take you to a version 6 directory listing instead of the listing you came from. This problem exists all over ViewCVS, not just in directory listings, and the result of it is that when you browse a repository by following the provided links you get sent further and further back into the history, all the while seeing incomplete log pages and outdated directory listings which you never asked for. The new URL scheme works by introducing a new 'pathrev' sticky variable and is described in detail in a comment in the _orig_path function in lib/viewcvs.py. The scheme is not backwards compatabile with all (or maybe even most) old subversion URLs. Specifically, any old URL referring to a path that no longer exists in the HEAD will not work. Other subversion URLs will still work. It is still possible to add backwards compatibility. We'd have to rename the rev parameter to something else, so we could know that all URLs with 'rev' in them are old style URLs which need to be redirected. I don't know if it's worth doing this though. This is not an isolated change. I've tried to unite the Subversion "sticky revision" with the present "only_with_tag" logic for CVS. And since I had to go over viewcvs.py with a fine-toothed comb implementing these things, there are also some miscellaneous cleanups there. * lib/vclib/bincvs/__init__.py (_file_log): change filtering so when matching revisions to tag, includes all preceding revisions, not just tag revision itself * lib/viewcvs.py (_sticky_vars): 'only_with_tag' is gone, so change this back into a list with no span-roots values (request.run_viewcvs): read new 'pathrev' parameter and use it when calling repos.itemtype (request.get_link): add 'pathrev' parameter to urls, restore update _sticky_vars loop (_legal_params, prep_tags, build_commit): replace 'only_with_tag' with 'pathrev' (_orig_path): new function (nav_path, common_template_data): stop adding 'rev' parameters to links removed unused 'roots_href' template variable (nav_header_data): add new 'revision_href', 'orig_path', 'orig_href' template variables for use in markup and annotate views (view_markup, view_checkout, view_annotate, setup_diff, generate_tarball, download_tarball): use 'pathrev' when looking up file revision (view_directory): use 'pathrev' when looking up directory revisions instead of 'rev'. stop adding 'rev' to links. add template variables: pathrev, pathrev_action, pathrev_hidden_values. remove unused template variables: num_files, rev, view_tag, has_tags, main_href, jump_rev_action, jump_rev_hidden_values, row.show_log. (view_log): use 'pathrev' to retrieve log information instead of 'rev'. stop linking to original paths of copied files. add template variables: entry.orig_path, entry.orig_href, default_branch, pathrev, pathrev_action, pathrev_hidden_values, branch_tags, plain_tags. remove template variables: entry.filename, entry.prev_path, branch, path_selected, view_tag, branch_names, branch_select_action, branch_select_hidden_values. (view_cvsgraph): use common_template_data instead of nav_header_data, 'pathrev' instead of 'only_with tag' (view_diff): use common_template_data instead of nav_header_data add template variables: path_left, path_right (view_revision): use 'pathrev' instead of 'rev' in links * templates/include/dir_header.ezt rearrange header and add sticky tag/revision row * templates/include/dir_footer.ezt remove tag selector * templates/include/pathrev_form.ezt new, sticky tag/revision selector form based on code from dir_footer.ezt * templates/include/branch.ezt * templates/include/branch_form.ezt * templates/include/view_tag.ezt removed * templates/include/log_header.ezt new, based on branch.ezt and view_tag.ezt * templates/include/log_footer.ezt new * templates/include/log.ezt * templates/include/log_table.ezt include log_header.ezt and log_footer.ezt * templates/include/annotate.ezt * templates/include/diff.ezt * templates/include/markup.ezt show original paths and add view_revision links * cvsgraph.conf.dist replace only_with_tag parameter with pathrev * website/template-authoring-guide.html update template variable information git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1145 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-11-03 16:31:02 +03:00
[include "include/log_footer.ezt"]