1. Shlomi Fish
  2. perl-SVN-RaWeb-Light


shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed a1e6096

1. Updated the TODO.

2. Updated the POD document.

3. Added the changes since 0.4.0 to the changes.

  • Participants
  • Parent commits 298ec8a
  • Branches default

Comments (0)

Files changed (3)

File Changes

View file
  • Ignore whitespace
 Revision history for Perl extension SVN::RaWeb::Light.
+    - There's now a full test coverage.
+    - Added the URL translations. (with all relevant CGI parameters)
+    - Added the Help Screen.
+    - Added a link to showing the control panel.
 0.4.0      Tue Apr 12 06:27:50 2005
     - Added a test suite.
     - Did some code cleanup.


View file
  • Ignore whitespace
-* URL Translations:
-    - Document in the POD.
-    - Document in Changes.
-    - Implement the avoid URL translations CGI param.
-    - Implement the user-specified URL translation.
-    - Implement URL translations after the directory listing.
-    - Implement the user-defined URL translation.
-* Add a Help Screen 
-    - Implement the actual detection and rendering of the help screen.
-* Place a message that indicates that the control panel at the moment is
-not functional if param('panel') is present.
 * Add a Control Console.

File lib/SVN/RaWeb/Light.pm

View file
  • Ignore whitespace
 SVN::RaWeb::Light is a class implementing a CGI script for browsing
 a Subversion repository given as a URL, and accessed through the Subversion
 Repository-Access layer. Its interface emulates that of the default
-Subversion http://-interface, only with the improvement of a C<rev> CGI 
-parameter to specify the revision of the repository.
+Subversion http://-interface, with some improvements.
-To use it, install the module (using CPAN or by copying it to your path) and 
+To use it, install the module (using CPAN or by copying it to your path) and
 write the CGI script given in the SYNOPSIS with the URL to the repository 
 passed as the C<'url'> parameter to the constructor.
-To use it just fire up a web-browser to the URL of the script. Note that
-you can pass the rev CGI parameter to designate a revision of the repository
-to browse instead of HEAD. This rev will be preserved to subsequent URLs
-that you browse. For example:
+To use it just fire up a web-browser to the URL of the script. 
-    http://www.myhost.net/ra-web-light/web-cpan/trunk/?rev=20
-will browse the trunk in revision 20.
+=head2 URL Translations
+URL translations are a method to translate the current path of the script to 
+to a URL. The latter is usually a URL of the Subversioned resource, which can 
+be manipulated directly using the C<svn> client and other clients.
+One can specify pre-defined URL translations, inside the value of the 
+C<'url_translations'> argument:
+    #!/usr/bin/perl -w
+    use SVN::RaWeb::Light;
+    my $app = SVN::RaWeb::Light->new(
+        'url' => "svn://svn.berlios.de/web-cpan/",
+        'url_translations' => 
+        [
+            {
+                'label' => "Read/Write URL",
+                'url' => "svn+ssh://svn.berlios.de/svnroot/repos/web-cpan/",
+            },
+            {
+                'label' => "Read URL",
+                'url' => "svn://svn.berlios.de/web-cpan/",
+            },
+        ],
+    );
+    $app->run();
+C<label> specifies the label as would appear on the page. C<url> is the URL
+relative to the script's base directory. The complete path would be the 
+URL in the URL translation appended by the path that the script points to.
 =head1 AUTHOR