You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Francois Beausoleil <fb...@users.sourceforge.net> on 2003/07/14 01:49:30 UTC

cvs2svn.py stops on empty (binary) files ?

Hi !

Just started trying to convert a SourceForge.net project of mine to SVN. 
It looks like something broke.  From the traceback below, I would have
guesses the finalwindow.gif file was empty, but that is not true.  I have
put a copy of the file on the web at:
http://jgb.sourceforge.net/svn/finalwindow.gif,v

D:\svn-trunk\tools\cvs2svn>python cvs2svn.py -n -v -s jgb --trunk-only
jgb-cvsroot
----- pass 1 -----
...
jgb-cvsroot\jgb\docs\documentation\elements\windows\Attic\index.html,v
jgb-cvsroot\jgb\docs\documentation\examples\Attic\index.html,v
jgb-cvsroot\jgb\docs\documentation\examples\eventwindow\Attic\finalwindow.gif,v
Traceback (most recent call last):
  File "cvs2svn.py", line 2190, in ?
    main()
  File "cvs2svn.py", line 2186, in main
    convert(ctx, start_pass=start_pass)
  File "cvs2svn.py", line 2075, in convert
    _passes[i](ctx)
  File "cvs2svn.py", line 1904, in pass1
    os.path.walk(ctx.cvsroot, visit_file, (cd, p, stats))
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 319, in walk
    func(arg, top, names)
  File "cvs2svn.py", line 355, in visit_file
    p.parse(open(pathname), cd)
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\common.py", line 239, in
  parse
    self.parse_rcs_deltatext()
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\common.py", line 218, in
  parse_rcs_deltatext
    text, sym2, log, sym1 = self.ts.mget(4)
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\default.py", line 169, in
  mget
    result.append(self.get())
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\default.py", line 108, in get
    raise RuntimeError, 'EOF'
RuntimeError: EOF

If necessary, I can provide access to the CVS repository.

Thanks,
François
--
  Francois Beausoleil
  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


Re: cvs2svn.py stops on empty (binary) files ?

Posted by kf...@collab.net.
"Francois Beausoleil" <fb...@users.sourceforge.net> writes:
> > > You may note that these are all binary files...  They must have the -kb
> > > option set as I check them out regularly in the process of making the
> > > project.  The clover-1.2.jar,v file is available at:
> > > http://jgb.sourceforge.net/svn/clover-1.2.jar,v
> > 
> > Thanks!  I'll check it out.  And this was with --trunk-only, too, eh?
> > 
> >    cvs2svn.py -n -v -s jgb --trunk-only jgb-cvsroot
> 
> Yup, dry run, verbose and trunk only.  I believe I have no branch commits
> anyway.

Francois, please see my comments in

   http://subversion.tigris.org/issues/show_bug.cgi?id=1416

I'm unable to reproduce this, at least with the data you posted...

-Karl

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

Re: cvs2svn.py stops on empty (binary) files ?

Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
On 14 Jul 2003 08:14:32 -0500, kfogel@collab.net said:
> "Francois Beausoleil" <fb...@users.sourceforge.net> writes:
> > You may note that these are all binary files...  They must have the -kb
> > option set as I check them out regularly in the process of making the
> > project.  The clover-1.2.jar,v file is available at:
> > http://jgb.sourceforge.net/svn/clover-1.2.jar,v
> 
> Thanks!  I'll check it out.  And this was with --trunk-only, too, eh?
> 
>    cvs2svn.py -n -v -s jgb --trunk-only jgb-cvsroot

Yup, dry run, verbose and trunk only.  I believe I have no branch commits
anyway.

> 
> Interesting...
> 
> 

Thanks !
François
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


Re: cvs2svn.py stops on empty (binary) files ?

Posted by kf...@collab.net.
"Francois Beausoleil" <fb...@users.sourceforge.net> writes:
> You may note that these are all binary files...  They must have the -kb
> option set as I check them out regularly in the process of making the
> project.  The clover-1.2.jar,v file is available at:
> http://jgb.sourceforge.net/svn/clover-1.2.jar,v

Thanks!  I'll check it out.  And this was with --trunk-only, too, eh?

   cvs2svn.py -n -v -s jgb --trunk-only jgb-cvsroot

Interesting...


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

Re: cvs2svn.py stops on empty (binary) files ?

Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
Unfortunately, that did not seem to help.  There were two new lines at
the end.  I used a hex-editor and removed one, then both of them.  I got
the following traceback:
jgb\jgb\docs\documentation\elements\windows\Attic\index.html,v
jgb\jgb\docs\documentation\examples\Attic\index.html,v
jgb\jgb\docs\documentation\examples\eventwindow\Attic\finalwindow.gif,v
Traceback (most recent call last):
  File "cvs2svn.py", line 2190, in ?
    main()
  File "cvs2svn.py", line 2186, in main
    convert(ctx, start_pass=start_pass)
  File "cvs2svn.py", line 2075, in convert
    _passes[i](ctx)
  File "cvs2svn.py", line 1904, in pass1
    os.path.walk(ctx.cvsroot, visit_file, (cd, p, stats))
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 325, in walk
    walk(name, func, arg)
  File "D:\Utils\Python22\Lib\ntpath.py", line 319, in walk
    func(arg, top, names)
  File "cvs2svn.py", line 355, in visit_file
    p.parse(open(pathname), cd)
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\common.py", line 239, in
  parse
    self.parse_rcs_deltatext()
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\common.py", line 218, in
  parse_rcs_d
eltatext
    text, sym2, log, sym1 = self.ts.mget(4)
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\default.py", line 169, in
  mget
    result.append(self.get())
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\default.py", line 108, in get
    raise RuntimeError, 'EOF'
RuntimeError: EOF

Which I believe is the same as last time.  Anything else I should try ? 
I tried deleting all the Attic folders, and I got the same EOF error on
another file:
jgb\jgb\clover_history\clover-20030609234410.xml,v
jgb\jgb\clover_history\clover-20030611172824.xml,v
jgb\jgb\lib\clover-1.2.jar,v
Traceback (most recent call last):
  File "cvs2svn.py", line 2190, in ?
    main()
...
  File "D:\svn-trunk\tools\cvs2svn\rcsparse\default.py", line 108, in get
    raise RuntimeError, 'EOF'
RuntimeError: EOF

You may note that these are all binary files...  They must have the -kb
option set as I check them out regularly in the process of making the
project.  The clover-1.2.jar,v file is available at:
http://jgb.sourceforge.net/svn/clover-1.2.jar,v

Thanks for your help !
François

On Sun, 13 Jul 2003 22:20:22 -0400, "mark benedetto king"
<mb...@lowlatency.com> said:
> On Sun, Jul 13, 2003 at 09:49:30PM -0400, Francois Beausoleil wrote:
> > Hi !
> > 
> > Just started trying to convert a SourceForge.net project of mine to SVN. 
> > It looks like something broke.  From the traceback below, I would have
> > guesses the finalwindow.gif file was empty, but that is not true.  I have
> > put a copy of the file on the web at:
> > http://jgb.sourceforge.net/svn/finalwindow.gif,v
> > 
> 
> I haven't tested this, but I suspect that if you delete the extra
> newline from the end of the ,v everything will work.  Let me know.
> 
> --ben
> 
> 
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


Re: cvs2svn.py stops on empty (binary) files ?

Posted by mark benedetto king <mb...@lowlatency.com>.
On Sun, Jul 13, 2003 at 09:49:30PM -0400, Francois Beausoleil wrote:
> Hi !
> 
> Just started trying to convert a SourceForge.net project of mine to SVN. 
> It looks like something broke.  From the traceback below, I would have
> guesses the finalwindow.gif file was empty, but that is not true.  I have
> put a copy of the file on the web at:
> http://jgb.sourceforge.net/svn/finalwindow.gif,v
> 

I haven't tested this, but I suspect that if you delete the extra
newline from the end of the ,v everything will work.  Let me know.

--ben


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