[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] cvs2svn on windows (resend)

From: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2003-07-25 19:33:18 CEST

I know, I know. I cannot remember the exact details. In fact, almost
all of run-tests.py fail because "cvs2svn-data.s-revs" is not found.
Here are the tests failing:

E:\svn-trunk>svn up
U www\project_packages.html
[...]
U packages\rpm\redhat-8+\Makefile
Updated to revision 6580.

E:\svn-trunk>cd tools\cvs2svn\

E:\svn-trunk\tools\cvs2svn>run-tests.py --verbose
CMD: cvs2svn.py <TIME = 4.817000>
PASS: run-tests.py 1: cvs2svn with no arguments shows usage
CMD: cvs2svn.py "--create" "-s" "bogus-tag-svnrepos"
"E:/svn-trunk/tools/cvs2svn
/test-data/bogus-tag-cvsrepos" <TIME = 2.433000>
PASS: run-tests.py 2: fail early on encountering an invalid symbolic
name
CMD: cvs2svn.py "--create" "-s" "overlapping-branch-svnrepos"
"E:/svn-trunk/tool
s/cvs2svn/test-data/overlapping-branch-cvsrepos" <TIME = 2.243000>
PASS: run-tests.py 3: fail early on encountering a branch with two names
CMD: cvs2svn.py "--trunk-only" "--create" "-s" "corrupt-svnrepos"
"E:/svn-trunk/
tools/cvs2svn/test-data/corrupt-cvsrepos" <TIME = 2.835000>

E:/svn-trunk/tools/cvs2svn/cvs2svn.py said:

   Traceback (most recent call last):
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2263, in ?
       main()
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2259, in main
       convert(ctx, start_pass=start_pass)
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2138, in convert
       _passes[i](ctx)
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2044, in pass4
       for line in fileinput.FileInput(ctx.log_fname_base +
       SORTED_REVS_SUFFIX):

     File "C:\Python22\lib\fileinput.py", line 230, in __getitem__
       line = self.readline()
     File "C:\Python22\lib\fileinput.py", line 310, in readline
       self._file = open(self._filename, "r")
   IOError: [Errno 2] No such file or directory: 'cvs2svn-data.s-revs'

FAIL: run-tests.py 4: convert as much as can, despite a corrupt ,v file

[snip - bunch of tests failing, all for the same reason]

CMD: cvs2svn.py "--create" "-s" "resync-misgroups-svnrepos"
"E:/svn-trunk/tools/
cvs2svn/test-data/resync-misgroups-cvsrepos" <TIME = 4.115000>

E:/svn-trunk/tools/cvs2svn/cvs2svn.py said:

   Traceback (most recent call last):
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2263, in ?
       main()
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2259, in main
       convert(ctx, start_pass=start_pass)
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2138, in convert
       _passes[i](ctx)
     File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2044, in pass4
       for line in fileinput.FileInput(ctx.log_fname_base +
       SORTED_REVS_SUFFIX):

     File "C:\Python22\lib\fileinput.py", line 230, in __getitem__
       line = self.readline()
     File "C:\Python22\lib\fileinput.py", line 310, in readline
       self._file = open(self._filename, "r")
   IOError: [Errno 2] No such file or directory: 'cvs2svn-data.s-revs'

FAIL: run-tests.py 17: resyncing should not put commit groups in the
wrong order

E:\svn-trunk\tools\cvs2svn>

When I run the #4 test (the first failing one) manually, I get a
different failure:
E:\svn-trunk\tools\cvs2svn>cvs2svn.py "--trunk-only" "--create" "-s"
"corrupt-sv
nrepos" "E:/svn-trunk/tools/cvs2svn/test-data/corrupt-cvsrepos"
----- pass 1 -----
E:/svn-trunk/tools/cvs2svn/test-data/corrupt-cvsrepos\bad,v
Warning: 'E:/svn-trunk/tools/cvs2svn/test-data/corrupt-cvsrepos\bad,v' is
not a
valid ,v file, ignoring
E:/svn-trunk/tools/cvs2svn/test-data/corrupt-cvsrepos\good,v
RESYNC: \good,v (1.1) : old time="Sat Nov 30 14:27:42 2002" new time="Sat
Nov 30
 14:27:41 2002"
----- pass 2 -----
RESYNC: \good,v (1.1) : old time="Sat Nov 30 14:27:41 2002" new time="Sat
Nov 30
 14:27:41 2002"
----- pass 3 -----
----- pass 4 -----
committing: Sat Nov 30 14:27:41 2002, over 0 seconds
    adding or changing 1.1 : trunk/\good
Traceback (most recent call last):
  File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2263, in ?
    main()
  File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2259, in main
    convert(ctx, start_pass=start_pass)
  File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2138, in convert
    _passes[i](ctx)
  File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 2090, in pass4
    c.commit(dumper, ctx, sym_tracker)
  File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 1844, in commit
    branches)
  File "E:\svn-trunk\tools\cvs2svn\cvs2svn.py", line 1082, in
  add_or_change_path

    pipe.close()
IOError: (0, 'Error')

This is with r6580, SVN 0.25.0, Win2K SP3.

Thanks,
François

PS: I sent a patch yesterday that corrects "/\" path elements. Check
"adding or changing 1.1 : trunk/\good" line above. The patch can be
found at:
http://article.gmane.org/gmane.comp.version-control.subversion.devel/31398

On 25 Jul 2003 11:35:05 -0500, cmpilato@collab.net said:
> "Francois Beausoleil" <fbos@users.sourceforge.net> writes:
>
> <vagueness>
> > Yes, Windows has a sort program. But I had problems with it.
> </vagueness>
>
> How so? What problems? Help me out here, folks! :-)
>
Developer of Java Gui Builder
http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 25 19:34:14 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.