cvsimport error when modulename is '.'
in an empty directory I'm attempting the command:
git cvsimport -A ../authcvs-conv -k -m -v -d:pserver:[email protected]:/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
Quoted 11 lines · Daniel Black
git cvsimport -A ../authcvs-conv -k -m -v -d:pserver:[email protected]:/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 matchstrip_path/cvsroot/opendkim/.c. ignoring
WARNING: file /cvsroot/opendkim/FEATURES doesn't matchstrip_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
Quoted 3 lines · 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.
Quoted 4 lines
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.
Quoted 1 line
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.
Quoted 1 line
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
Quoted 4 lines
(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 .
Quoted 3 lines
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
Quoted 2 lines
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.