You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Chia-liang Kao <cl...@clkao.org> on 2003/07/03 07:40:30 UTC

converting cvs to svn with vcp: call for testers

Hi,

I've just done a testing script for converting cvs repository 
to subversion with vcp, and checks the resulting repository.
now I've tested vcp with the test-data in cvs2svn and my own.
I'd like to ask for people who are interested in converting
cvs to svn help checking if vcp does the right conversion for
you.

the testscript will convert all cvs modules in the cvsroot
specified, and do diff -ru for the branches/tags checked 
out from cvs repository and the resulting svn repository.

how to test:

% svn checkout http://svn.clkao.org/revml/trunk/ revml
% cd revml; perl Makefile.PL # please fix the depedencies

# this checks the default test data at t/cvs-test-data
% make test TEST_FILES=t/99cvs2svn.t

# test your repository
% make test TEST_FILES=t/99cvs2svn.t VCP_CVSROOT=/path/to/repo TEST_VERBOSE=1

Cheers,
CLK

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: converting cvs to svn with vcp: call for testers

Posted by Barrie Slaymaker <ba...@slaysys.com>.
On Thu, Jul 03, 2003 at 11:08:31AM +0200, Timothee Besset wrote:
> After the usual battling against CPAN to get everything installed
> (sometimes it's good to see that the years go by, and the same things
> still suck as much).

Some comments:

1. Using CPAN.pm to "test VCP" should grab most of the prereqs.  There
is a new one (IPC::Run3), but 99% should go ok otherwise.  I'll be
putting a new VCP on CPAN in the next month or so with an up to date
PREREQ_PM (the one clkao mirrors is up to data AFAIK).

2. For non-developers, I'm wrapping a single Perl script (vcp.pl) that
contains all of the prereqs.  Again, that's in the next month or so.

> I suppose a list of the stuff I had to install would be useful:

That's in the Makefile.PL's PREREQ_PM section.

> Also, the ability to specify a custom cvs path would be good. The server
> on which I run that uses a different name for cvs.

To be precise, you want to set the executable name or path?  >>TODO
(been wanting to do it, keep forgetting to TODOify that).

- Barrie

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: converting cvs to svn with vcp: call for testers

Posted by Timothee Besset <tt...@idsoftware.com>.
After the usual battling against CPAN to get everything installed
(sometimes it's good to see that the years go by, and the same things
still suck as much).

I suppose a list of the stuff I had to install would be useful:
cpan> install VCP IPC::Run IPC::Run3 MIME::Base64 Pod::Links Regexp::Shellish  Text::Diff XML::Parser XML::ValidWriter
(won't go over the CPAN nastyness and all the crap I had to go through to get this to work)

Also, the ability to specify a custom cvs path would be good. The server
on which I run that uses a different name for cvs.

Then the test fails to run (make test TEST_FILES=t/99cvs2svn.t)

I tried to investigate this, looks like the repositories don't exist.
Tried manually creating a svnadmin create /tmp/svntest but it didn't help.
I think that's overly broken atm.

revml$ make test TEST_FILES=t/99cvs2svn.t
PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/i686-linux -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/99cvs2svn.t
t/99cvs2svn....#     Failed test (t/99cvs2svn.t at line 72)
t/99cvs2svn....NOK 1subversion/libsvn_ra_local/ra_plugin.c:225: (apr_err=180000)
svn: Couldn't find a repository.
svn: Unable to open an ra_local session to URL
subversion/libsvn_ra_local/split_url.c:153: (apr_err=180000)
svn: svn_ra_local__split_URL: Unable to find valid repository
   (file:///tmp/vcptest-full-prune-5137/svnrepo/trunk)
t/99cvs2svn....NOK 2#     Failed test (t/99cvs2svn.t at line 20)
t/99cvs2svn....ok 3/0diff: full-prune.svn: No such file or directory
t/99cvs2svn....ok 4/0subversion/libsvn_ra_local/ra_plugin.c:225: (apr_err=180000)
svn: Couldn't find a repository.
svn: Unable to open an ra_local session to URL
subversion/libsvn_ra_local/split_url.c:153: (apr_err=180000)
svn: svn_ra_local__split_URL: Unable to find valid repository
   (file:///tmp/vcptest-full-prune-5137/svnrepo/tags)
subversion/libsvn_ra_local/ra_plugin.c:225: (apr_err=180000)
svn: Couldn't find a repository.
svn: Unable to open an ra_local session to URL
subversion/libsvn_ra_local/split_url.c:153: (apr_err=180000)
svn: svn_ra_local__split_URL: Unable to find valid repository
   (file:///tmp/vcptest-full-prune-5137/svnrepo/branches)
#     Failed test (t/99cvs2svn.t at line 72)
t/99cvs2svn....NOK 5subversion/libsvn_ra_local/ra_plugin.c:225: (apr_err=180000)
svn: Couldn't find a repository.
[..]
DIED. FAILED tests 1-2, 5-6, 9-10, 13-14, 17-18, 21-22, 25-26
        Failed 14/28 tests, 50.00% okay
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/99cvs2svn.t   14  3584    28   14  50.00%  1-2 5-6 9-10 13-14 17-18 21-22 25-
                                             26
Failed 1/1 test scripts, 0.00% okay. 14/28 subtests failed, 50.00% okay.
make: *** [test_dynamic] Error 2

TTimo

On Thu, 3 Jul 2003 15:40:30 +0800
Chia-liang Kao <cl...@clkao.org> wrote:

> Hi,
> 
> I've just done a testing script for converting cvs repository 
> to subversion with vcp, and checks the resulting repository.
> now I've tested vcp with the test-data in cvs2svn and my own.
> I'd like to ask for people who are interested in converting
> cvs to svn help checking if vcp does the right conversion for
> you.
> 
> the testscript will convert all cvs modules in the cvsroot
> specified, and do diff -ru for the branches/tags checked 
> out from cvs repository and the resulting svn repository.
> 
> how to test:
> 
> % svn checkout http://svn.clkao.org/revml/trunk/ revml
> % cd revml; perl Makefile.PL # please fix the depedencies
> 
> # this checks the default test data at t/cvs-test-data
> % make test TEST_FILES=t/99cvs2svn.t
> 
> # test your repository
> % make test TEST_FILES=t/99cvs2svn.t VCP_CVSROOT=/path/to/repo TEST_VERBOSE=1
> 
> Cheers,
> CLK
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org