# cvsimport error when modulename is '.'

3 messages from 2010-02-13 to 2010-02-16. Participants: Daniel Black, Jeff King.
Thread: https://gitlist.dev/t/22641

## Daniel Black, 2010-02-13 11:51

Subject: cvsimport error when modulename is '.'
Message-ID: <201002132251.42070.daniel.subs@internode.on.net>
URL: https://gitlist.dev/e/201002132251.42070.daniel.subs%40internode.on.net

```

in an empty directory I'm attempting the command:

git  cvsimport -A ../authcvs-conv -k -m -v -d:pserver:anonymous@opendkim.cvs.sourceforge.net:/cvsroot/opendkim .

this results in ...

Initialized empty Git repository in /home/dan/software_projects/opendkim-import4/.git/                                                
Running cvsps...                                                                                                                      
connect error: Network is unreachable                                                                                                 
cvs rlog: Logging .                                                                                                                   
NOTICE: used alternate strip path /cvsroot/opendkim/.c                                                                                
WARNING: file /cvsroot/opendkim/BRANCHES doesn't match strip_path /cvsroot/opendkim/.c. ignoring                                      
WARNING: file /cvsroot/opendkim/FEATURES doesn't match strip_path /cvsroot/opendkim/.c. ignoring                                      
....
for every file up until the end:
....
Fetching vsignore   v 1.1
Unknown: error

The resulting directory is empty apart from a empty initialised git repository.

git version 1.7.0.rc2.13.g8b233.dirty
cvsps version 2.1

numerous permutations of attempting this import have failed. Also fails with
 the CVS module aliases 'world -> .' and attempting to use "world" as an alias name.

I'm happy to assist in debugging this if required.

Daniel
OpenDKIM developer

```

## Jeff King, 2010-02-14 07:07

Subject: Re: cvsimport error when modulename is '.'
Message-ID: <20100214070757.GA22000@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20100214070757.GA22000%40coredump.intra.peff.net
In-Reply-To: <201002132251.42070.daniel.subs@internode.on.net>

```
On Sat, Feb 13, 2010 at 10:51:42PM +1100, Daniel Black wrote:

> git  cvsimport -A ../authcvs-conv -k -m -v -d:pserver:anonymous@opendkim.cvs.sourceforge.net:/cvsroot/opendkim .
>
> this results in ...
>
> Initialized empty Git repository in /home/dan/software_projects/opendkim-import4/.git/
> Running cvsps...
> connect error: Network is unreachable
> cvs rlog: Logging .
> NOTICE: used alternate strip path /cvsroot/opendkim/.c
> WARNING: file /cvsroot/opendkim/BRANCHES doesn't match strip_path /cvsroot/opendkim/.c. ignoring
> WARNING: file /cvsroot/opendkim/FEATURES doesn't match strip_path /cvsroot/opendkim/.c. ignoring

These messages are not coming from git-cvsimport, but rather from cvsps,
which cvsimport uses to generate whole patchsets from the CVS data. Just
running "cvsps ." results in similar errors, and I don't see an obvious
way to do what you want. So probably it would require a patch to cvsps
to fix.

If this is a one-shot import, you can try a few different things.

As a hack, if you can move files in the CVS repository (and if you
can't, try using cvssuck or similar to pull them locally, and then do
the import from there), then move everything to a submodule "foo", and
import that module.

Alternatively, you might check out some of the alternative importers
like parsecvs or cvs2git. I don't know if they would handle this
situation better.

And as a super-hacky alternative, you could import each module
separately and then stich them all together using git-filter-branch.

-Peff

```

## Daniel Black, 2010-02-16 11:21

Subject: Re: cvsimport error when modulename is '.'
Message-ID: <201002162221.58483.daniel.subs@internode.on.net>
URL: https://gitlist.dev/e/201002162221.58483.daniel.subs%40internode.on.net
In-Reply-To: <20100214070757.GA22000@coredump.intra.peff.net>

```
On Sunday 14 February 2010 18:07:58 Jeff King wrote:
> On Sat, Feb 13, 2010 at 10:51:42PM +1100, Daniel Black wrote:

> These messages are not coming from git-cvsimport, but rather from cvsps,

thanks for narrowing it down. I'll see if I can track down the maintainer 
there.

> which cvsimport uses to generate whole patchsets from the CVS data. Just
> running "cvsps ." results in similar errors, and I don't see an obvious
> way to do what you want. So probably it would require a patch to cvsps
> to fix.

thanks for confirming this.
 
> If this is a one-shot import, you can try a few different things.

was hoping not too but i might be able to get the project team on board with a 
one-shot.
 
> As a hack, if you can move files in the CVS repository

on sf its easy as you've got read rsync access on the source

> (and if you
> can't, try using cvssuck or similar to pull them locally, and then do
> the import from there), then move everything to a submodule "foo", and
> import that module.

might to this .

> Alternatively, you might check out some of the alternative importers
> like parsecvs or cvs2git. I don't know if they would handle this
> situation better.

ok

> And as a super-hacky alternative, you could import each module
> separately and then stich them all together using git-filter-branch.

Yep was thinking of this. Thanks for the expert advice on the stiching 
together because i had no idea how.

Much appreciate your time for putting together these options.

Thanks Jeff.

```
