Re: Bug report with test repository for conversion failure

Michael Haggerty <[email protected]> Thu, 07 Mar 2013 10:51:46 +0100
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On 03/06/2013 03:10 AM, Matt Ackeret wrote:
> I narrowed down my failure to a copy of my repository.  I destroyed most of the
> repository with destroy_repository.py, but manually mangled filenames (since 
> when it mangled filenames, the problem disappeared).  It does still
> *seem* to be a space in filename issue even though I have one other folder
> that I *didn't* remove that has an item with a space in its name, and that
> still converts.
> 
> 1) I'm using cvs2svn-2.4.0
> 2) python --version fails, but python -v shows among a bunch of other stuff
> Python 2.4.3 (#1, Mar 30 2006, 11:02:16) 
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> 
> This was from installing MacPython, which an internal web site says is
> necessary because it also installs database software that cvs2svn uses. 
> (IIRC, I tried running it before installing MacPython, and saw that it failed.)
> The MacPython I installed was from
> http://www.python.org/ftp/python/2.4.3/Universal-MacPython-2.4.3.dmg
> 
> 3) The attached CVS repository is put in /tmp, and I ran
> 
> /Users/Shared/cvs2svn-2.4.0/cvs2svn --use-cvs --encoding=UTF-8 --default-eol=native --dumpfile=/tmp/cvs2svn-dump /tmp/PROJECT
> 
> (Not all of the params are needed to cause the failure, but I'm doing as
> requested and providing what I've actually been using.)
> 
> 4) Running that, the end of the output is:
> 
> ----- pass 16 (OutputPass) -----
> Starting Subversion Dumpfile.
> Starting Subversion r1 / 327
> Starting Subversion r2 / 327
> ERROR: The command 'cvs -Q -R -f -d :local:/tmp/PROJECT co -r1.1 -p -kk Tests/SUBPROJECT/AA BB Help/AA BB Help idx' failed with exit status=1
> and the following output:
> cvs checkout: cannot chdir to /tmp/PROJECT/Tests/SUBPROJECT/AA: No such file or directory

The conversion works for me, either with version 2.4.0 or with trunk.  I
am using Linux and the following version of CVS:

    $ cvs --version
    Concurrent Versions System (CVS) 1.12.13-MirDebian-8 (client/server)
    [...]

In your case, a particular CVS command fails, as shown in your output.
Try running the failed command by hand, with correct shell quoting (the
way cvs2svn tries to run it):

    cvs -Q -R -f -d :local:/tmp/PROJECT co -r1.1 -p -kk \
        'Tests/SUBPROJECT/AA BB Help/AA BB Help idx'

(That command runs fine for me here.)  If that command fails, then you
have a problem with your installed version of CVS, and there is nothing
that cvs2svn can do about it.

It is very likely that your version of cvs is to blame.  I would be very
surprised if older standard versions of CVS can't handle spaces in
filenames (unless you have an extremely old version), so especially
check whether you are perhaps running a nonstandard version of CVS or a
version that is called via a shell script.

Michael

-- 
Michael Haggerty
[email protected]
http://softwareswirl.blogspot.com/

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=3050496

To unsubscribe from this discussion, e-mail: [[email protected]].