* Trouble importing from public CVS repo
@ 2008-01-04 21:41 Jeff Garzik
2008-01-04 23:17 ` Sean
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2008-01-04 21:41 UTC (permalink / raw)
To: Git Mailing List; +Cc: Matthias Urlichs
I'm trying to convert this public repo into a git repository:
:pserver:anonymous@cvs.lysator.liu.se:/cvsroot/unfs3
cvsps seems to produce a nice long list of patchesets for the "unfs3"
module, and running
cvs -d:pserver:anonymous@cvs.lysator.liu.se:/cvsroot/unfs3 co -P unfs3
works as expected. However, running
[jgarzik@core unfs3]$ git-cvsimport -v
-d:pserver:anonymous@cvs.lysator.liu.se:/cvsroot/unfs3 unfs3
produces
Initialized empty Git repository in /spare/repo/unfs3/.git/
Running cvsps...
connect error: Network is unreachable
cvs rlog: Logging unfs3
cvs rlog: Logging unfs3/Config
cvs rlog: Logging unfs3/Extras
cvs rlog: Logging unfs3/contrib
cvs rlog: Logging unfs3/contrib/nfsotpclient
cvs rlog: Logging unfs3/contrib/nfsotpclient/mountclient
cvs rlog: Logging unfs3/contrib/rpcproxy
cvs rlog: Logging unfs3/doc
Fetching LICENSE v 1.1
New LICENSE: 1416 bytes
Fetching Makefile.in v 1.1
Unknown: error
This machines and package (git-cvs-1.5.3.3-3.fc7) work just fine with a
large number of other CVS repositories [nice work].
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trouble importing from public CVS repo
2008-01-04 21:41 Trouble importing from public CVS repo Jeff Garzik
@ 2008-01-04 23:17 ` Sean
2008-01-05 0:40 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Sean @ 2008-01-04 23:17 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Git Mailing List, Matthias Urlichs
On Fri, 04 Jan 2008 16:41:10 -0500
Jeff Garzik <jeff@garzik.org> wrote:
> $ git-cvsimport -v -d:pserver:anonymous@cvs.lysator.liu.se:/cvsroot/unfs3 unfs3
>
> produces
>
> Initialized empty Git repository in /spare/repo/unfs3/.git/
> Running cvsps...
> connect error: Network is unreachable
> cvs rlog: Logging unfs3
> cvs rlog: Logging unfs3/Config
> cvs rlog: Logging unfs3/Extras
> cvs rlog: Logging unfs3/contrib
> cvs rlog: Logging unfs3/contrib/nfsotpclient
> cvs rlog: Logging unfs3/contrib/nfsotpclient/mountclient
> cvs rlog: Logging unfs3/contrib/rpcproxy
> cvs rlog: Logging unfs3/doc
> Fetching LICENSE v 1.1
> New LICENSE: 1416 bytes
> Fetching Makefile.in v 1.1
> Unknown: error
>
Hi Jeff,
See the same problem here and it has something to do with how files are being fetched
from the cvs server. I'm not much inclined to research it further, however the ugly hack
below appears to allow the repo to be imported. At least importing the first 10 commits
(-L 10) looked okay... Perhaps it's a clue to how the issue could be resolved properly.
HTH,
Sean
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 6d8ff93..357665d 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -421,7 +421,7 @@ sub _line {
$res += $self->_fetchfile($fh, $cnt);
} else {
chomp $line;
- if ($line eq "ok") {
+ if ($line eq "ok" or $line =~ /^error/i) {
# print STDERR "S: ok (".length($res).")\n";
return $res;
} elsif ($line =~ s/^E //) {
--
1.5.4.rc2.17.g257f
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Trouble importing from public CVS repo
2008-01-04 23:17 ` Sean
@ 2008-01-05 0:40 ` Jeff Garzik
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2008-01-05 0:40 UTC (permalink / raw)
To: Sean; +Cc: Git Mailing List, Matthias Urlichs
Sean wrote:
> diff --git a/git-cvsimport.perl b/git-cvsimport.perl
> index 6d8ff93..357665d 100755
> --- a/git-cvsimport.perl
> +++ b/git-cvsimport.perl
> @@ -421,7 +421,7 @@ sub _line {
> $res += $self->_fetchfile($fh, $cnt);
> } else {
> chomp $line;
> - if ($line eq "ok") {
> + if ($line eq "ok" or $line =~ /^error/i) {
> # print STDERR "S: ok (".length($res).")\n";
> return $res;
> } elsif ($line =~ s/^E //) {
Kick ass, this local hack worked quite well. Thanks :)
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-05 0:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04 21:41 Trouble importing from public CVS repo Jeff Garzik
2008-01-04 23:17 ` Sean
2008-01-05 0:40 ` Jeff Garzik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.