SVN-Web-0.63000755001750001750 012037474104 11626 5ustar00deandean000000000000TODO100644001750001750 217412037474104 12403 0ustar00deandean000000000000SVN-Web-0.63* Write a 'help' action with associated documentation. * SVN::Web::Help? Or should each action provide its own help() method? * cleanup the template structure with hooks * distinguish different node under same path in different revisions. * provide link with svn dav url. * users might only be interested in the latest few active branches/tags - hlb - as well as log history. it shouldn't list all by default. * some switches for svnweb-install to do upgrade and file merging. * use svn_fs_history_t to get fixed amount of log first. * supply last-modified in header and check it. * Add an 'annotation' action * Fix bugs reported through RT * Possibly a difference in the localisation between "Revision" as a title, column heading, or whatever, and "Revision \d+" referring to a specific revision number. * Templates and I18N should be more tightly coupled. * Working directory diff support in Diff.pm using SVK::Editor * Where get_logs is used, is it faster to get the revision properties? Need to benchmark to find out. * Split SVN::Web::RSS in to a separate distribution * SVN::Web::Search, based on SVN::Log::Index?README100644001750001750 165312037474104 12574 0ustar00deandean000000000000SVN-Web-0.63This is the README file for SVN::Web, a subversion repository web frontend. Subversion is a version control system, you can find more information at http://subversion.tigris.org/. * Installation You need subversion 0.28 release or newer, with perl bindings support to use SVN::Web. SVN::Web uses the standard perl module install process: % perl Build.PL % Build * Configuration After install the module, use svnweb-install to configure SVN::Web. see the pod in SVN::Web for more information. * Latest version The latest SVN::Web could be found at: https://github.com/djzort/SVN-Web * Copyright Copyright 2003-2004 by Chia-liang Kao . Copyright 2005-2007 by Nik Clayton . Copyright 2012 by Dean Hamstead . This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See . LICENSE100644001750001750 4365312037474104 12747 0ustar00deandean000000000000SVN-Web-0.63This software is copyright (c) 2012 by Dean Hamstad. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2012 by Dean Hamstad. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2012 by Dean Hamstad. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End dist.ini100755001750001750 231212037474104 13354 0ustar00deandean000000000000SVN-Web-0.63name = SVN-Web version = 0.63 author = Dean Hamstead license = Perl_5 copyright_holder = Dean Hamstad copyright_year = 2012 [GatherDir] [MetaYAML] [MetaJSON] [MetaTests] [Manifest] [ManifestSkip] [PruneCruft] [License] [MakeMaker] [ExtraTests] [CPANFile] [Test::Perl::Critic] critic_config = t/perlcriticrc [PodCoverageTests] [PodSyntaxTests] [TestRelease] [ConfirmRelease] [UploadToCPAN] [ExecDir] [Twitter] hash_tags = #perl #cpan [Prereqs] Alien::SVN = 0 Carp = 0 Encode = 0 Exception::Class = 1.22 File::Basename = 0 File::Path = 0 File::Spec = 0 File::Temp = 0 FindBin = 0 IO::File = 0 List::Util = 0 Locale::Maketext = 0 Locale::Maketext::Lexicon = 0 POSIX = 0 Plack = 0 Number::Format = 0 Template = 0 Template::Plugin::Number::Format = 0 Time::Zone = 0 URI::Escape = 0 YAML = 0 base = 0 perl = 5.00404 strict = 0 vars = 0 warnings = 0 [Prereqs / BuildRequires] File::Copy = 0 File::Find = 0 [Prereqs / RuntimeRecommends ] Cache::Cache = 0 Template::Plugin::Subst = 0 Template::Plugin::Clickable = 0 Template::Plugin::Clickable::Email = 0 Test::Benchmark = 0 Test::HTML::Tidy = 0 XML::RSS::Parser = 0 [Prereqs / TestRequires] Cwd = 0 Test::More = 0 Test::WWW::Mechanize = 0 File::Path = 0 t000755001750001750 012037474104 12012 5ustar00deandean000000000000SVN-Web-0.631use.t100644001750001750 71412037474104 13176 0ustar00deandean000000000000SVN-Web-0.63/t#!/usr/bin/perl use Test::More; use File::Spec; use File::Basename qw( dirname ); BEGIN { my $manifest = File::Spec->catdir(dirname(__FILE__), '..', 'MANIFEST'); plan skip_all => 'MANIFEST not exists' unless -e $manifest; open FH, $manifest; my @pm = map { s|^lib/||; chomp; $_ } grep { m|^lib/.*pm$| && !m|Test| } ; plan tests => scalar @pm; for(@pm) { s|\.pm$||; s|/|::|g; use_ok($_); } } META.yml100644001750001750 215412037474104 13162 0ustar00deandean000000000000SVN-Web-0.63--- abstract: 'Subversion repository web frontend' author: - 'Dean Hamstead ' build_requires: Cwd: 0 File::Copy: 0 File::Find: 0 File::Path: 0 Test::More: 0 Test::WWW::Mechanize: 0 configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 0 generated_by: 'Dist::Zilla version 4.300025, CPAN::Meta::Converter version 2.120921' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: SVN-Web recommends: Cache::Cache: 0 Template::Plugin::Clickable: 0 Template::Plugin::Clickable::Email: 0 Template::Plugin::Subst: 0 Test::Benchmark: 0 Test::HTML::Tidy: 0 XML::RSS::Parser: 0 requires: Alien::SVN: 0 Carp: 0 Encode: 0 Exception::Class: 1.22 File::Basename: 0 File::Path: 0 File::Spec: 0 File::Temp: 0 FindBin: 0 IO::File: 0 List::Util: 0 Locale::Maketext: 0 Locale::Maketext::Lexicon: 0 Number::Format: 0 POSIX: 0 Plack: 0 Template: 0 Template::Plugin::Number::Format: 0 Time::Zone: 0 URI::Escape: 0 YAML: 0 base: 0 perl: 5.00404 strict: 0 vars: 0 warnings: 0 version: 0.63 MANIFEST100644001750001750 452612037474104 13047 0ustar00deandean000000000000SVN-Web-0.63CHANGES.pod CONTRIBUTING.pod LICENSE MANIFEST MANIFEST.SKIP META.json META.yml Makefile.PL README SVN-Web.psgi TODO UPDATING.pod bin/svnweb-install cpanfile css/common.css css/styles-hlb.css css/trac/browser.css css/trac/changeset.css css/trac/code.css css/trac/diff.css css/trac/feed-icon-16x16.png css/trac/file.png css/trac/filedeny.png css/trac/folder.png css/trac/folderdeny.png css/trac/parent.png css/trac/svnweb.css css/trac/text-diff-html.css css/trac/trac.css dist.ini lib/SVN/Web.pm lib/SVN/Web/Blame.pm lib/SVN/Web/Browse.pm lib/SVN/Web/Checkout.pm lib/SVN/Web/Diff.pm lib/SVN/Web/DiffParser.pm lib/SVN/Web/I18N.pm lib/SVN/Web/I18N/en.po lib/SVN/Web/I18N/fr.po lib/SVN/Web/I18N/zh_cn.po lib/SVN/Web/I18N/zh_tw.po lib/SVN/Web/List.pm lib/SVN/Web/Log.pm lib/SVN/Web/RSS.pm lib/SVN/Web/Revision.pm lib/SVN/Web/Test.pm lib/SVN/Web/View.pm lib/SVN/Web/X.pm lib/SVN/Web/action.pm t/1use.t t/2basic.t t/3svnweb-install.t t/author-critic.t t/cache.t t/perlcriticrc t/release-distmeta.t t/release-pod-coverage.t t/release-pod-syntax.t t/repos/README.txt t/repos/conf/authz t/repos/conf/passwd t/repos/conf/svnserve.conf t/repos/db/current t/repos/db/format t/repos/db/fs-type t/repos/db/fsfs.conf t/repos/db/min-unpacked-rev t/repos/db/rep-cache.db t/repos/db/revprops/0/0 t/repos/db/revprops/0/1 t/repos/db/revprops/0/2 t/repos/db/revprops/0/3 t/repos/db/revs/0/0 t/repos/db/revs/0/1 t/repos/db/revs/0/2 t/repos/db/revs/0/3 t/repos/db/txn-current t/repos/db/txn-current-lock t/repos/db/uuid t/repos/db/write-lock t/repos/format t/repos/hooks/post-commit.tmpl t/repos/hooks/post-lock.tmpl t/repos/hooks/post-revprop-change.tmpl t/repos/hooks/post-unlock.tmpl t/repos/hooks/pre-commit.tmpl t/repos/hooks/pre-lock.tmpl t/repos/hooks/pre-revprop-change.tmpl t/repos/hooks/pre-unlock.tmpl t/repos/hooks/start-commit.tmpl t/repos/locks/db-logs.lock t/repos/locks/db.lock t/svn-uris.t t/test_repo.dump t/timedate_format.t template/plain/browse template/plain/diff template/plain/footer template/plain/header template/plain/list template/plain/log template/plain/revision template/plain/view template/plain/x template/trac/_action_menu template/trac/_diff template/trac/_log_msg template/trac/blame template/trac/browse template/trac/diff template/trac/footer template/trac/header template/trac/list template/trac/log template/trac/revision template/trac/rss template/trac/view template/trac/x cpanfile100644001750001750 257112037474104 13420 0ustar00deandean000000000000SVN-Web-0.63requires "Alien::SVN" => "0"; requires "Carp" => "0"; requires "Encode" => "0"; requires "Exception::Class" => "1.22"; requires "File::Basename" => "0"; requires "File::Path" => "0"; requires "File::Spec" => "0"; requires "File::Temp" => "0"; requires "FindBin" => "0"; requires "IO::File" => "0"; requires "List::Util" => "0"; requires "Locale::Maketext" => "0"; requires "Locale::Maketext::Lexicon" => "0"; requires "Number::Format" => "0"; requires "POSIX" => "0"; requires "Plack" => "0"; requires "Template" => "0"; requires "Template::Plugin::Number::Format" => "0"; requires "Time::Zone" => "0"; requires "URI::Escape" => "0"; requires "YAML" => "0"; requires "base" => "0"; requires "perl" => "5.00404"; requires "strict" => "0"; requires "vars" => "0"; requires "warnings" => "0"; recommends "Cache::Cache" => "0"; recommends "Template::Plugin::Clickable" => "0"; recommends "Template::Plugin::Clickable::Email" => "0"; recommends "Template::Plugin::Subst" => "0"; recommends "Test::Benchmark" => "0"; recommends "Test::HTML::Tidy" => "0"; recommends "XML::RSS::Parser" => "0"; on 'build' => sub { requires "File::Copy" => "0"; requires "File::Find" => "0"; }; on 'test' => sub { requires "Cwd" => "0"; requires "File::Path" => "0"; requires "Test::More" => "0"; requires "Test::WWW::Mechanize" => "0"; }; on 'configure' => sub { requires "ExtUtils::MakeMaker" => "6.30"; }; cache.t100644001750001750 364212037474104 13407 0ustar00deandean000000000000SVN-Web-0.63/t#!/usr/bin/perl use warnings; use strict; use Test::More; use POSIX (); plan 'no_plan'; ok(1, 'stub'); __END__ use SVN::Web::Test; BEGIN { plan skip_all => "Test::Differences not installed" unless eval { require Test::Differences; 1 }; plan skip_all => "Cache::Cache not installed" unless eval { require Cache::MemoryCache; 1 }; } my $repos = 't/repos'; my $test = SVN::Web::Test->new(repo_path => $repos, repo_dump => 't/test_repo.dump'); my $repo_url = 'file://' . POSIX::getcwd() . '/t/repos'; $test->set_config({ uri_base => 'http://localhost', script => '/svnweb', config => { repos => { repos => $repo_url } }, }); my $url = $test->site_root(); my $mech = $test->mech(); my %store; # First, make sure that caching is turned off, and walk the whole tree. # Build a hash that maps URLs to contents. We'll check this later. diag('First walk'); $mech->get($url); $test->walk_site(\&store_content); plan tests => keys(%store) * 3; # Now, without turning caching on, do it again, to verify that the # results are the same without caching. diag('Second walk, no caching'); $mech->get($url); $test->walk_site(\&check_content); # Now turn caching on, walk the site once more to prime the cache diag('Third walk, priming cache'); my $config = SVN::Web::get_config(); $config->{cache} = { class => 'Cache::MemoryCache' }; SVN::Web::set_config($config); $mech->get($url); $test->walk_site(\&check_content); # Walk the site for a final time. Most requests should hit the cached # copy, and there should be no content changes diag('Fourth walk, using cache'); $mech->get($url); $test->walk_site(\&check_content); sub store_content { my $test = shift; $store{$test->mech()->uri()} = $test->mech()->content(); } sub check_content { my $test = shift; Test::Differences::eq_or_diff($test->mech()->content(), $store{$test->mech()->uri()}, "$test->mech()->uri()"); } META.json100644001750001750 415412037474104 13334 0ustar00deandean000000000000SVN-Web-0.63{ "abstract" : "Subversion repository web frontend", "author" : [ "Dean Hamstead " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 4.300025, CPAN::Meta::Converter version 2.120921", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "SVN-Web", "prereqs" : { "build" : { "requires" : { "File::Copy" : "0", "File::Find" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "6.30" } }, "runtime" : { "recommends" : { "Cache::Cache" : "0", "Template::Plugin::Clickable" : "0", "Template::Plugin::Clickable::Email" : "0", "Template::Plugin::Subst" : "0", "Test::Benchmark" : "0", "Test::HTML::Tidy" : "0", "XML::RSS::Parser" : "0" }, "requires" : { "Alien::SVN" : "0", "Carp" : "0", "Encode" : "0", "Exception::Class" : "1.22", "File::Basename" : "0", "File::Path" : "0", "File::Spec" : "0", "File::Temp" : "0", "FindBin" : "0", "IO::File" : "0", "List::Util" : "0", "Locale::Maketext" : "0", "Locale::Maketext::Lexicon" : "0", "Number::Format" : "0", "POSIX" : "0", "Plack" : "0", "Template" : "0", "Template::Plugin::Number::Format" : "0", "Time::Zone" : "0", "URI::Escape" : "0", "YAML" : "0", "base" : "0", "perl" : "5.00404", "strict" : "0", "vars" : "0", "warnings" : "0" } }, "test" : { "requires" : { "Cwd" : "0", "File::Path" : "0", "Test::More" : "0", "Test::WWW::Mechanize" : "0" } } }, "release_status" : "stable", "version" : "0.63" } 2basic.t100644001750001750 716212037474104 13510 0ustar00deandean000000000000SVN-Web-0.63/t#!/usr/bin/perl use strict; use warnings; use SVN::Web::Test; use Test::More; use POSIX (); my $can_tidy = eval { require Test::HTML::Tidy; 1 }; my $can_parse_rss = eval { require XML::RSS::Parser; 1 }; my $tidy; if($can_tidy) { $tidy = HTML::Tidy->new(); $tidy->ignore(text => [ qr/trimming empty /, qr/ lacks "summary" attribute/, ]); } my $rss; if($can_parse_rss) { $rss = XML::RSS::Parser->new(); } my $repos = 't/repos'; my $test = SVN::Web::Test->new(repo_path => $repos, repo_dump => 't/test_repo.dump'); my $repo_url = 'file://' . POSIX::getcwd() . '/t/repos'; $test->set_config({ uri_base => 'http://localhost', script => '/svnweb', config => { repos => { repos => $repo_url } }, }); my $mech = $test->mech(); $mech->get_ok('http://localhost/svnweb/repos/browse/'); $mech->title_is( 'browse: /repos (Rev: HEAD, via SVN::Web)', "'browse' has correct title") or diag $mech->content(); $mech->get('http://localhost/svnweb/repos/browse/?rev=1'); $mech->title_is( 'browse: /repos (Rev: 1, via SVN::Web)', "'browse' with rev has correct title") or diag $mech->content(); $mech->get('http://localhost/svnweb/repos/revision/?rev=2'); $mech->title_is('revision: /repos (Rev: 2, via SVN::Web)', "'revision' has correct title") or diag $mech->content(); $mech->get('http://localhost/svnweb/'); $mech->title_is('Repository List (via SVN::Web)', "'list' has correct title") or diag $mech->content(); note "Recursively checking all links"; my $test_sub = sub { note('skip static files checks in local tests: '.$mech->uri), return if $mech->uri->path eq '/' or $mech->uri->path =~ m{/css/}; is($mech->status, 200, 'Fetched ' . $mech->uri()) or diag $mech->status; # Make sure that there are no '//' in the URI, unless preceeded by # a ':'. This catches template bugs with too many slashes. unlike($mech->uri(), qr{(?uri(); $mech->content_unlike(qr'An error occured', ' and content was correct') or diag $mech->content; if($can_tidy and ($mech->uri() !~ m{ (?: / (?: rss | checkout ) | mime=text/plain )}x)) { Test::HTML::Tidy::html_tidy_ok($tidy, $mech->content(), ' and is valid HTML ('.$mech->uri.')') or diag($mech->content()); } # Make sure that all local links (like find_all_links(tag=>'a',url_regex=>qr/^\#/); foreach (@local_links) { my $name = $_->url; $name =~ s/^#//; $mech->content_like(qr/(?:id|name)=['"]$name(?:['"])/, " and has element with name='$name' (".$mech->uri.")"); } if($can_parse_rss and ($mech->uri() =~ m{/rss/})) { my $feed = $rss->parse_string($mech->content()); ok(defined $feed, 'RSS parsed successfully') or diag $rss->errstr(), diag $mech->content(); { local $TODO = "I'am unsure about this test, in some environments full URL can't be" ." obtained, so may be we can introduce canonical_uri in config?" ." Anyway mark as todo for now"; # Make sure that each item's element is a full URL for my $item ($feed->query('//item')) { my $node = $item->query('link'); like($node->text_content(), qr/^http/, 'RSS link is fully qualified') or diag $node->text_content(); } } } }; $test->walk_site($test_sub); done_testing; CHANGES.pod100644001750001750 4147312037474104 13514 0ustar00deandean000000000000SVN-Web-0.63=head1 NAME CHANGES =head1 SYNOPSIS Changes between SVN::Web versions. =head1 DESCRIPTION This is a list of the main changes between different versions of SVN::Web. Please see L for details about any changes you may need to make when updating an SVN::Web installation. =head2 0.63, released Oct 17, 2012 =over =item More improvements to UTF8 handling graciously contributed by Vladimir Timofeev =back =head2 0.62, released Oct 10, 2012 =over =item Updated psgi file, for some reason I regressed it. =item A variety of fixes, notably huge improvements to UTF8 handling graciously contributed by Vladimir Timofeev and diff output fixes =back =head2 0.61, released Jun 11, 2012 =over =item Template fixes for RT48416 =item RT24507 closed as the stand alone server was removed in favor of Plack. =item RT39707 closed as many perl SVN related issues were resolved elsewhere =item Included patch from RT32041 to authenticate to https =back =head2 0.60, released Jun 7, 2012 =over =item Pulled out mod_perl1/2 and cgi, replaced with Plack. This probably broke lots of things. =item Changed to using Dist::Zilla with MakeMaker (due to .po issues with Module::Build) =item DAGOLDEN recommends using Alien::SVN as dependency, rather than SVN::Core, SVN::Client and SVN::Ra. This is because the SVN perl modules are not published to CPAN. =item Merged patch from rt26159 =back =head2 0.54, never released =over =item Fix for RT35186, to make 'selected' compliant with XHTML =item Fix for RT37388, by Vladimir Timofeev =back =head2 0.53, released Apr 29, 2007 =over =item Change how path's are encoded, to work around new strictness in Template Toolkit's C filter. SVN::Web now works with versions of TT > 2.15. =item Adjust F to work correctly in non-English locales. Fixes rt#25435, reported by C. =back =head2 0.52, released Jan 22, 2007 =over =item Belatedly update the SVN::Web installation to note that Subversion 1.4.0 or above is now required to use SVN::Web. =back =head2 0.51, released Jan 15, 2007 =over =item C functionality was inadvertently broken in 0.50. This release fixes that. This was rt#24377 reported by Christoph Buescher . =back =head2 0.50, released Jan 12, 2007 =over =item SVN::Web now supports accessing repositories that are B on the same host as the SVN::Web installation. Repositories can be accessed using the I, I, and I protocols. =item A mechanism for configuring which actions are available on each page has been introduced. See L for more. =item A new action, L has been introduced. This generates output that shows the Subversion annotation/blame information for a file. =item Diff output (from L and L) is now generated by Subversion, rather than SVN::Web. This makes diff generation much faster, and much less memory intensive. However, it has meant that the I option is no longer available. There are several small tweaks to the diff and revision output. =item Refactoring and rewriting has meant that L, L, and L are no longer prequisites. =item A bug has been fixed in RSS generation. The contents of the element are now wrapped in CDATA markers to ensure that any embedded markup is preserved. =item There is now support for keeping localisation files in arbitrary directories, configured by the C configuration option. This makes it simpler to maintain your own localisation files outside of SVN::Web, and makes it easier to integrate third party actions in to an SVN::Web installation. See L and L for more details. =item The Template::Toolkit C meta-filter has been replaced with a Template::Toolkit MACRO, defined in F<_log_msg>. The effect is the same, but this approach affords more flexibility (e.g., having different log message filters per repository). =item The log template now supports rudimentary 'paging' through the log messages. I paging support requires new functionality in Subversion. Selecting the number of log messages to show per page is also more straightforward. =item L supports a C configuration option to cope with revisions which may generate huge diffs. =item The configuration file (F) must contain a C key, otherwise a fatal error is generated. =item Most extraneous whitespace is now removed from the templates when output is being produced. =item Documentation bug rt#22282, reported by Andrew Sterling Hanenkamp , has been fixed. =back =head2 0.49, released Aug 23, 2006 =over =item SVN::Web now properly supports Apache 2 / mod_perl 2. In addition, the test suite contains tests that work under Apache 2, and ensure that future changes should not introduce regressions in this functionality. =item File::Spec is now used when constructing filesystem paths, instead of assuming that the directory separator is F. This should allow the use of native paths on Windows, e.g. F<< C:\path\to\svnweb >>. =item A bug in the mod_perl handler meant that the [% script %] directive wasn't generating fully qualified links. This resulted in links in the RSS feed being relative. This is now fixed. Reported by Dietrich Streifert . =item When testing the generated F includes an explicit C directive, removing a warning on some hosts. Reported in rt#20170 by . =item Set permissions on the temporary directories when running tests as root. Otherwise they fail. Reported in rt#20170 by . =item Fix a bug encounted on Solaris. SVN::Core::time_from_cstring() was returning negative numbers. =item The questions that are asked when running C<< perl Build.PL >> can now be answered and/or skipped by passing command line options to F. Run C<< perldoc Build.PL >> for the documentation options. =item Paths to Apache modules are no longer hardcoded in F. C is used to retrieve the value of the Apache library directory. In addition, the name of the mod_perl .so file is now configurable, as different systems call it different things. =item Included documentation on using SVN::Web with the IIS web server. Submitted by Tom Hukins in rt#20341. =item A bug in the author's testing environment meant that 0.48 shipped with templates that generated HTML that was not strictly valid. This, and the templates, have been fixed. =back =head2 0.48, released Jun 28, 2006 =over =item The interface localisation can now be selected. The interface has always been localised, but the mechanism for choosing it has been badly exposed. SVN::Web now supports two configuration options (C and C) to specify the language selection. In addition, the available configured languages are also exposed through the (C) user interface, and the user can choose from the list of available localisation. Their choice is saved in a cookie. =item Generation of RSS feeds is now done using a template, instead of using L. This removes a dependency on XML:RSS, and should make it easier to customise the content of the RSS feed should you desire. This fixes rt#18169, reported by Mike Ellery . =item RSS feeds are now autodiscoverable in modern browsers. =item The formatting of timestamps is now configurable using L. You can choose how timestamps are formatted, and they can be displayed in UTC (the Subversion default), the server's local timezone, or the timezone of your choice. See L for details. This fixes rt#18806, reported by Mike Ellery . =item Worked around a bug in Subversion where repository paths that were specified with a tailing slash would trigger an assertion. This fixes rt#19273, reported by Michael Schwern . =item Fixed a bug where the C cache backend option was not being treated as an octal number. This fixes rt#19272, reported by Michael Schwern . =item The L action now show's the repository's youngest revision if no C parameter is provided. =item Fixed a bug in L. Revisions that contain files that were copied from another file, modified, and then committed will now be displayed properly instead of generating an error. =item The documentation for L includes an example configuration for Apache and FastCGI, contributed by Robert Spier . =item Made extensive changes to the test suite. Include tests that exercise SVN::Web when running under C, as a CGI script, and as an Apache mod_perl1 handler. These tests are optional -- the installer is prompted at C time whether to run these tests, and to provide the information the tests need (such as the port to run on). =back =head2 0.47, released May 6, 2006 =over =item Implement support for caching the results of the actions, using any of the L family of modules. In tests (see F) this can yield a 20% or greater speed benefit. See L for details of how to enable the cache and configure cache related options. =item Support Subversion repo directories and files that have spaces or other characters that should be URI escaped in their names. Fixes rt#19093, reported by . =item Commented out the references to L and L in the config file that is generated by C. This stops log files filling up with warnings if they're not present. The lines remain, commented out, as a suggestion for users. =item Improved the modperl2 support, fixing rt#19004, rt#18437, and rt#18346 (Garrison Hoffman , , Thomas Nagel ). =back =head2 0.46, released Mar 9, 2006 =over =item Fixed a bug in C. The L module is now always used when running under this server, instead of L. This should fix problems if you are trying to use C on a host with L installed. =back =head2 0.45, released Mar 8, 2006 =over =item Fixed a bug that broke mod_perl support. =back =head2 0.44, released Mar 8, 2006 =over =item When browsing the repository the F templates now include age of the file, expressed as {seconds, minutes, hours, days, weeks, months, years} since the file was last modified. =item The C, C, C, and C actions are much more conservative with memory when processing commits that changed a large number of files. Fixes rt#17359, reported by Dietrich Streifert . =item Included support for running under mod_perl2 as well as mod_perl1. Fixes rt#17085 and rt#17350. Based on a patch from Garrison Hoffman . =item Fixed a bug when running under mod_perl -- the HTTP headers were not being sent. Some browsers could cope with this, others just displayed the raw HTML. Reported by Dominic Mitchell . =item Entering a revision number that does not exist will now generate a localised error message. Fixes rt#17822, reported by =item The L action will now not show diffs between file revisions if either revision of the file has a non-text MIME type. Fixes rt#17625, reported by Mike Ellery . =item Fixed some bugs in C. Option parsing works properly, fixing rt#17347 (reported by ) and the C<--net-server> option is now honoured. =item C should now work if any directories in the install path contain regexp metacharacters in the filename. Fixes rt#17282, reported by . It also emits warnings if copying files or making directories during the install process fails, fixing rt#17283. =back =head2 0.43, released Jan 25, 2006 =over =item Fix a syntax error in the config file generated by svnweb-install. =item Fix the instructions and code for running under mod_perl. =item When viewing an HTML diff, include a link to the plain text equivalent. =item Showing diffs when viewing a revision is now optional, but defaults to on. =item Require Exception::Class 1.22 or above. Versions below lack the necessary C syntax. =item Improve the installation and configuration documentation. =item Include C, a simple web server to make it easier for people to get started with SVN::Web. =back =head2 0.42, released Dec 16, 2005 =over =item Throw exceptions instead of die()ing on almost all errors. Catch the exceptions and generate much friendlier error messages. Error messages are now easy to localise. =item When viewing a diff, the I templates show the two revision numbers being compared, and include a link allowing the user to reverse the order of the diff. =item The syntax for specifying permitted actions, and the classes that implement them, has changed. See L for more information. This mechanism also allows for easy configuration of per-action options. =item A (partial) French localisation has been supplied by Cyril Brulebois. =item Any C properties that are set on a directory are now shown when browsing that directory. =item When viewing a file's revision log, you can now select two arbitrary revisions and get a diff showing the changes between those revisions. Fixes rt#15813. =item If you only have one repository configured then the C action can be configured to immediately redirect to browsing that repository, saving the user from having to click through an intermediate page. See L for more information. =back =head2 0.41, released Nov 4, 2005 =over =item Introduce a [% base_uri %] variable so templates can refer to files relative to the directory that C was run in. Fix a hardcoded reference to my home directory in a template. =item Update some of the packaging files, which were out of date. =back =head2 0.40, released Nov 4, 2005 =over =item Maintainership handed from Chia-ling Kao to Nik Clayton. =item Overhauled the templates, so the out-of-the-box experience is much nicer. =item Add a C action that shows the contents of a file, along with the most recent log message. =item More customisation options, making it easier to add or remove actions from the list of things that SVN::Web is allowed to do. =item Added huge swathes of information to the documentation. It should now be much easier for anyone else to contribute code and/or templates to SVN::Web. =item A fix for rt#12431. URLs without trailing slashes are fixed. =item A mechanism to 'stack' Template Toolkit filters. You can easily run log messages through an arbitrary number of filters, without causing problems if one or more of the filters is not installed. =item Inline display of some content from the repository where appropriate (e.g., viewing an image works properly). =item Fixed a bug that meant the results from the automated tests weren't valid. Fixed the bugs that this uncovered. =item Added tests to ensure that the generated HTML is valid. =back =head2 0.39 Never released. =head2 0.38, released Nov 21, 2004 =over =item Fix pool mess causing apache to segfault under mod_perl. =item Add limit option to log. =back =head2 0.37, released Jun 3, 2004 =over =item Templates are now css friendly. [Autrijus] =item heavy branch detection no longer default. =back =head2 0.36, released Nov 24, 2003 =over =item Make mod_perl 1 work. =item I18n support from Autrijus. =item Repository list action from DROLSKY =item Fix poor pool usage for branch init. =back =head2 0.35, released Nov 19, 2003 =over =item Fix RSS links to revisions under mod_perl. =item Misc fixes and API catch-up. =back =head2 0.30, released Aug 27, 2003 =over =item Fix - Escape log message properly. =item Add log message when describing a revision. =item Sort the entries in browsing. =item Adjust pool usage for opened repos so it's easier for modperl to work =item Add mod_perl support. =back =head2 0.2, released Aug 26, 2003 =over =item Add path navigation support. =item Add file diff support. =item Add RSS support for tracking changes. =item Add mime-type support for checkout and browse. =item Add branch info support in directory browsing. =item Add branchpoint info in log mode. =item Update document. =back =head2 0.11, released Aug 25, 2003 =over =item Fix - Missing '/' in path in links. =back =head2 0.1, released Aug 25, 2003 =over =item Initial release. =back Makefile.PL100644001750001750 330212037474104 13657 0ustar00deandean000000000000SVN-Web-0.63 use strict; use warnings; use 5.004040; use ExtUtils::MakeMaker 6.30; my %WriteMakefileArgs = ( "ABSTRACT" => "Subversion repository web frontend", "AUTHOR" => "Dean Hamstead ", "BUILD_REQUIRES" => { "Cwd" => 0, "File::Copy" => 0, "File::Find" => 0, "File::Path" => 0, "Test::More" => 0, "Test::WWW::Mechanize" => 0 }, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30" }, "DISTNAME" => "SVN-Web", "EXE_FILES" => [ "bin/svnweb-install" ], "LICENSE" => "perl", "NAME" => "SVN::Web", "PREREQ_PM" => { "Alien::SVN" => 0, "Carp" => 0, "Encode" => 0, "Exception::Class" => "1.22", "File::Basename" => 0, "File::Path" => 0, "File::Spec" => 0, "File::Temp" => 0, "FindBin" => 0, "IO::File" => 0, "List::Util" => 0, "Locale::Maketext" => 0, "Locale::Maketext::Lexicon" => 0, "Number::Format" => 0, "POSIX" => 0, "Plack" => 0, "Template" => 0, "Template::Plugin::Number::Format" => 0, "Time::Zone" => 0, "URI::Escape" => 0, "YAML" => 0, "base" => 0, "strict" => 0, "vars" => 0, "warnings" => 0 }, "VERSION" => "0.63", "test" => { "TESTS" => "t/*.t" } ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; my $pp = $WriteMakefileArgs{PREREQ_PM}; for my $mod ( keys %$br ) { if ( exists $pp->{$mod} ) { $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; } else { $pp->{$mod} = $br->{$mod}; } } } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); UPDATING.pod100644001750001750 2610612037474104 13653 0ustar00deandean000000000000SVN-Web-0.63=head1 NAME UPDATING =head1 SYNOPSIS Notes on updating from previous versions of SVN::Web =head1 WARNING This is out of date for 0.60 =head1 DESCRIPTION If you have not modified the supplied template files the update can be carried out by: =over 4 =item 1. Backing up your existing F file. =item 2. Removing all the files in your current C directory. =item 3. Running C from this distribution. This will copy the new templates, as well as creating a new F. =item 4. Restoring the F that you backed up in step 1, and making any changes, as described below. =back If you have made local modifications then the following information should help you merge the changes in this version in to your modified files. =head2 0.52 to 0.53 =over =item Update the C key in your configuration file to 0.53. =item Subversion paths are now escaped by SVN::Web before being passed to the templates, resulting in a change to every template that contains a path. In general, this means that where previously you would write: [% path | uri | html %] in a template, now you can just write [% path %] If you do not re-run C when you upgrade to this version you B update the templates by hand. =back =head2 0.51 to 0.52 =over =item Update the C key in your configuration file to 0.52. =back =head2 0.50 to 0.51 =over =item Update the C key in your configuration file to 0.51. =back =head2 0.49 to 0.50 =over 4 =item The configuration file must now contain a C key, the value of which must match the SVN::Web version. If it is not present, or does not match, SVN::Web will C, and generate an appropriate error in the logs. Add this line: version: 0.50 to F, after making sure that you have updated the configuration file to contain all the necessary new directives. =item There are many new configuration options for actions. Either run C, as advised above, or view the documentation for each action, which has been updated to show the new entries that should be placed in F for the action. This change has also affected all the action templates save for F and F. There is a new F