Beta testers for SVN::Web 0.50 wanted

nik on 2006-11-10T08:48:01

I'm >< this close to releasing SVN::Web 0.50. There are several major changes in this version, the most dramatic of which is that SVN::Web now supports accessing remote repositories.

In other words, you can have something like this in your config.yaml:

repos: local_repo: file:///path/to/repo some_repo: svn://host/path/to/repo other_repo: http://host/path/to/repo

and it'll work. The work to do this has also meant that the Diff and Revision operations are considerably faster and more memory efficient. Also, SVN::Web::Blame is now implemented, which I know some people have been waiting for.

If you'd like to try out 0.50, fetch the code from:

svn://jc.ngo.org.uk/nik/CPAN/SVN-Web/branches/svn-client/

and run:

% perldoc CHANGES.pod % perldoc UPGRADING.pod % perl Build.PL % ./Build % ./Build test % ./Build install --install_base /some/path

(use the --install_base option if you don't want to overwrite a pre-existing SVN::Web installation)

Feedback welcomed.


Bravo

jk2addict on 2006-11-10T15:03:26

That's some strong work there. If I get a chance this weekend, I'll give it a run through.

lots of errors when running "./Build test"

vjo on 2006-11-10T18:02:53

On OSX using fink to install svn-ssl-* stuff (perl 5.8.6.)

Email me at gonz808 (at) hotmail.com for details

Copying additional files
t/1use...............
t/1use...............NOK 1# Failed test 'use SVN::Web;'
# in t/1use.t at line 19.
# Tried to use 'SVN::Web'.
# Error: Can't locate Template.pm in @INC (@INC contains: /Users/vagn/src/svn-client/blib/lib /Users/vagn/src/svn-client/blib/arch /Users/vagn/src/svn-client/_build/lib /sw/lib/perl5/5.8.6/darwin-thread-multi-2level sw/lib/perl5/5.8.6/darwin-thr

etc.

Re:lots of errors when running "./Build test"

nik on 2006-11-10T18:25:59

You need Template Toolkit installed, plus a few other dependencies. They should have been noted when you ran "perl Build.PL". Where there no warnings?

Re:lots of errors when running "./Build test"

vjo on 2006-11-10T18:43:12

yep, just misunderstood the "You may wish to install the .." part as you-don't-have-to

I will give it a go later after installing the missing modules

Re:lots of errors when running "./Build test"

vjo on 2006-11-10T22:45:08

Now i can see the front page (svnweb-server) but get the following error when selecting my repository

Repository List / web-vj @ r
An error occured

Usage: svn_client_info(path_or_url,peg_revision,revision,receiver,receiver_baton,recurs e,ctx,pool); at /System/Library/Perl/5.8.6/CGI/Carp.pm line 314.

Re:lots of errors when running "./Build test"

nik on 2006-11-11T11:55:52

Hmm. Which version of Subversion are you running?

Re:lots of errors when running "./Build test"

vjo on 2006-11-11T14:06:16

> svn --version
svn, version 1.2.3 (r15833)
      compiled Sep 30 2006, 19:44:50

> uname -a
Darwin vj-mac.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386

I did not build svn myself but used the fink package system

~/src/svn-client> sudo fink apropos svn | grep ^.i
  i svn-client-ssl 1.2.3-1012 Subversion - Client (with SSL)
  i svn-ssl 1.2.3-1012 Subversion - svnserve, tools (with SSL)
  i svn-ssl-dev 1.2.3-1012 Subversion - Development headers and libraries (with SSL)
  i svn-ssl-shlibs 1.2.3-1012 Subversion - Shared libraries (with SSL)
  i svn-ssl-swig-pm586 1.2.3-1012 Subversion - Swig Perl bindings (with SSL)
  i svn-ssl-swig-pm586-shlibs 1.2.3-1012 Subversion - Swig Perl Shared libraries (with SSL)
~/src/svn-client>

Re:lots of errors when running "./Build test"

nik on 2006-11-11T22:00:12

Hmm. It's possible I've used stuff in the client libraries that's only available in later releases of Subversion.

That would be useful information to have. Would it be possible for you to try with Subversion 1.3.x or 1.4, and see if that resolves the problem for you?

Re:lots of errors when running "./Build test"

vjo on 2006-11-12T22:53:53

After a lot of difficulty i managed to install

    subversion @1.4.2_0 (active)
    subversion-perlbindings @1.4.0_0 (active)

via the 'port' package system. Unfortunately it leaves me with broken perl bindings. Both 'perl -w /usr/local/bin/svnweb-server' and 'perl -MSVN::Client -e 'print'' fails with symbol not found

$ perl -MSVN::Client -e 'print'
Can't load '/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/SVN/_Core/_Core.bundl e' for module SVN::_Core: dlopen(/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/SVN/_Core/_Core .bundle, 1): Symbol not found: _PL_sv_undef
    Referenced from: /opt/local/lib/libsvn_swig_perl-1.0.dylib
    Expected in: flat namespace
  at /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/SVN/Base.pm line 59
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/SVN/Core.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/SVN/Client.pm line 4.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/SVN/Client.pm line 4.
Compilation failed in require.
BEGIN failed--compilation aborted.

Re:lots of errors when running "./Build test"

vjo on 2006-11-16T20:13:57

IT'S ALIVE

I had two perl installations on my machine which caused some confusion.

Clicking around like crazy now only the diff links ("HTML" and "TEXT") fails:

"An error occured

RA layer request failed: PROPFIND request failed on '/js/js.txt': PROPFIND of '/js/js.txt': 405 Method Not Allowed (http://10.0.0.3:8081) at ../lib/SVN/Web/Diff.pm line 165"

Also the diff links always contain rev and rev-1. should the rev-1 be replaced with the previous version that can seen in the table (the revision list can have "holes"). Just a thought.

typo in pod instructions

diakopter on 2006-11-11T01:13:08

% perldoc UPDATING.pod