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

RE: (Newbie) Problems using "cvs2svn" on Windows, with a CVSNT repository

From: Christopher Brown <christopher_at_calligrafix.com>
Date: 2004-03-12 16:50:56 CET

Solved one problem, hit another...

I had CVS in my path before RCS. Put RCS first in the path, that helped.
Now, as soon as "pass 4" begins, I'm getting...

committing: Thu Feb 12 09:35:17 2004, over 1 seconds
    adding or changing 1.1 : 'trunk/BUILDING.TXT'
Traceback (most recent call last):
  File "C:\cvs2svn\cvs2svn.py", line 2749, in ?
    main()
  File "C:\cvs2svn\cvs2svn.py", line 2745, in main
    convert(ctx, start_pass=start_pass)
  File "C:\cvs2svn\cvs2svn.py", line 2581, in convert
    _passes[i](ctx)
  File "C:\cvs2svn\cvs2svn.py", line 2504, in pass4
    c.commit(dumper, ctx, sym_tracker)
  File "C:\cvs2svn.py", line 2227, in commit
    ctx.cvs_revnums)
  File "C:\cvs2svn\cvs2svn.py", line 1319, in add_or_change_path
    if pipe.close() is not None:
IOError: (0, 'Error')

Hmm...

I'd like to get this to work though, not giving up yet!!!

- Chris

-----Original Message-----
From: Rob van Oostrum
Sent: 12 March 2004 15:11
To: users@subversion.tigris.org
Subject: RE: (Newbie) Problems using "cvs2svn" on Windows, with a CVSNT
repository

check that running that RCS command on its own from the directory you're in
works ...

> -----Original Message-----
> From: Christopher Brown
> Sent: Friday, March 12, 2004 9:44 AM
> To: users@subversion.tigris.org
> Subject: RE: (Newbie) Problems using "cvs2svn" on Windows, with a
> CVSNT repository
>
>
>
> Hi,
>
> I created the repository beforehand, as suggested.
> I used an absolute path, and forward slashes (but unfortunately all
> the subdirectories that the script discovers are still "stuck"
> onto the base of
> the repository path using backslashes...).
> Still not as far as the "sort" requirement, still no further forward
> unfortunately.
>
> Is there no other way than using Cygwin? I'm not at all sure how this
> interacts with the host operating system and command-line environment,
> and so would have difficulty going down this route without spending
> ages learning how to work it properly... :-(
>
> Don't really know what my best option is to migrate just now...
>
> - Chris
>
> -----Original Message-----
> From: Rob van Oostrum
> Sent: 12 March 2004 14:31
> To: Christopher Brown
> Subject: RE: (Newbie) Problems using "cvs2svn" on Windows, with a
> CVSNT repository
>
> couple things ...
>
> - for GNU sort you could install Cygwin
> - I've had some weird behavior (never looked too closely into it) with
> --create on W2K, I find it's more reliable to create the SVN repos
> beforehand
> - I *think* you need to pass absolute paths for the whole thing to
> work properly but I'm not sure
> - use forward slashes only
>
> > -----Original Message-----
> > From: Christopher Brown
> > Sent: Friday, March 12, 2004 8:37 AM
> > To: users@subversion.tigris.org
> > Subject: FW: (Newbie) Problems using "cvs2svn" on Windows, with a
> > CVSNT repository
> >
> >
> >
> > Nobody seems to use the "cvs2svn" list, so I'll repost here...
> >
> > - Chris
> >
> > -----Original Message-----
> > From: Christopher Brown [mailto:christopher@calligrafix.com]
> > Sent: 12 March 2004 10:18
> > To: users@cvs2svn.tigris.org
> > Subject: (Newbie) Problems using "cvs2svn" on Windows, with a CVSNT
> > repository
> >
> >
> > Hello,
> >
> > I'm having difficulty converting a CVS repository to a Subversion
> > repository.
> >
> > I'm using Subversion 1.0.0 on Windows XP. I've checked out the
> > current version of "cvs2svn". I've installed Python 2.3.2. I've
> > installed (and added to the path) the Windows version of
> "RCS", using
> > the link specified in cvs2svn's "README" file. I can't see what I
> > need to do to work with GNU "sort", but I don't think I've got that
> > far yet...?
> >
> > I am trying to convert based on a local filesystem copy of the
> > repository.
> > The original repository runs with CVSNT. I've put my CVS
> repository
> > files in a subfolder of the folder in which I've put
> "cvs2svn", namely
> > "myrepos", and would like to create the SVN repository in a
> subfolder
> > named "mysvn\proj".
> >
> > Running the following command then:
> >
> > C:\cvs2svn>cvs2svn.py --create -s mysvn\proj myrepos
> >
> > ...creates the following output (I've cut out the output
> from "pass 1"
> > to "pass 2", but it basically lists all the files in my repository,
> > such as
> > "myrepos\BUILDING.TXT,v"):
> >
> > ----- pass 1 -----
> > ...
> > ----- pass 2 -----
> > ----- pass 3 -----
> > ----- pass 4 -----
> > creating repos 'mysvn\proj'
> > committing: Thu Feb 12 09:35:17 2004, over 1 seconds
> > adding or changing 1.1 : 'trunk/BUILDING.TXT'
> > Error: Command failed: "co -q -p1.1 "myrepos\BUILDING.TXT,v""
> >
> > I assumed then that maybe I should use a "file:" URL, like this:
> >
> > C:\cvs2svn>cvs2svn.py --create -s mysvn\proj
> file:///C:/cvs2svn/myrepos
> Error: 'file:///C:/cvs2svn/myrepos' does not exist.
>
> As you can see, it didn't like it (I did clean out the "stub"
> SVN repository
> that the Python script had created, and also removed all other files
> created in the current directory by it). Should I try to setup a
> local "pserver", would that help?
>
> Or is the problem elsewhere?
>
> Or am I just wasting my time trying this on Windows (is it not
> possible)?
>
> If the answer to the last question is "yes", am I likely to be totally
> stuck, given that the original repository is on a Windows filesystem,
> and that this might well screw up will EOL stuff if I copy as-is onto
> a Linux/Unix machine (I don't have one to hand unfortunately...)?
>
> Thanks in advance for your help!
>
> - Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 12 16:51:56 2004

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

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