* git-cvsimport problem
@ 2006-05-30 1:06 Grzegorz Kulewski
2006-05-30 1:56 ` Martin Langhoff
2006-05-30 4:37 ` Linus Torvalds
0 siblings, 2 replies; 7+ messages in thread
From: Grzegorz Kulewski @ 2006-05-30 1:06 UTC (permalink / raw)
To: Git Mailing List
Hi,
I think I hit some problem in git-cvsimport or maybe cvsps or maybe (but
unprobable) in network communication.
I am trying to do:
git-cvsimport -d :pserver:cvs@cvs.rulez.pl:/home/cvsroot -C lms -i -k -u
-m -v lms
and it looks like it hangs in the middle with message:
cvs [rlog aborted]: unexpected '\x0' reading revision number in RCS file
/home/cvsroot/lms/templates/noaccess.html,v
and to my understanding does not do anything usefull next. Nothing is
imported (there is only nearly empty .git tree). I have to press CTRL-C to
stop it.
strace:
[pid 30796] read(3, "---------------------\nM revision"..., 4096) = 2068
[pid 30796] read(3, "M date: 2003/06/20 21:07:56; au"..., 4096) = 1448
[pid 30796] read(3, ".19\nM date: 2003/05/26 21:05:47;"..., 4096) = 1448
[pid 30796] read(3, " revision 1.15.2.3\nM date: 2003/"..., 4096) = 1276
[pid 30796] write(2, "cvs [rlog aborted]: unexpected \'"..., 117cvs [rlog
aborted]: unexpected '\x0' reading revision number in RCS file
/home/cvsroot/lms/templates/noaccess.html,v
) = 117
[pid 30796] read(3, <-- hangs on that read
ps:
kangur 30791 30556 3 02:55 pts/4 S+ 0:00 \_ strace -f
git-cvsimport -d :pserver:cvs@cvs.rulez.pl:/home/cv
kangur 30792 30791 2 02:55 pts/4 S+ 0:00 \_
/usr/bin/perl -w /usr/bin/git-cvsimport -d :pserver:cvs@c
kangur 30796 30792 18 02:55 pts/4 S+ 0:03 \_ cvsps
--norc --cvs-direct -u -A --root :pserver:cvs@c
file descriptors:
kangur@beta ~ $ ls -al /proc/30796/fd/
total 5
dr-x------ 2 kangur users 0 May 30 02:55 .
dr-xr-xr-x 3 kangur users 0 May 30 02:55 ..
lrwx------ 1 kangur users 64 May 30 02:57 0 -> /dev/pts/4
l-wx------ 1 kangur users 64 May 30 02:57 1 -> pipe:[429154]
lrwx------ 1 kangur users 64 May 30 02:55 2 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:57 3 -> socket:[429155]
lrwx------ 1 kangur users 64 May 30 02:57 4 -> socket:[429155]
kangur@beta ~ $ ls -al /proc/30792/fd/
total 6
dr-x------ 2 kangur users 0 May 30 02:55 .
dr-xr-xr-x 3 kangur users 0 May 30 02:55 ..
lrwx------ 1 kangur users 64 May 30 02:57 0 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:57 1 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:55 2 -> /dev/pts/4
lr-x------ 1 kangur users 64 May 30 02:57 3 -> /home/kangur/.cvspass
lrwx------ 1 kangur users 64 May 30 02:57 4 -> socket:[429124]
lr-x------ 1 kangur users 64 May 30 02:57 5 -> pipe:[429154]
kangur@beta ~ $ ls -al /proc/30791/fd/
total 3
dr-x------ 2 kangur users 0 May 30 02:55 .
dr-xr-xr-x 3 kangur users 0 May 30 02:55 ..
lrwx------ 1 kangur users 64 May 30 02:58 0 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:58 1 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:55 2 -> /dev/pts/4
netstat:
tcp 0 0 beta.polcom.net:50743 netx.waw.pl:cvspserver
ESTABLISHED
tcp 0 0 beta.polcom.net:50744 netx.waw.pl:cvspserver
ESTABLISHED
I am using:
git version 1.3.3
cvsps version 2.1
What is going on?
Thanks in advance,
Grzegorz Kulewski
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-cvsimport problem
2006-05-30 1:06 git-cvsimport problem Grzegorz Kulewski
@ 2006-05-30 1:56 ` Martin Langhoff
2006-05-30 4:37 ` Linus Torvalds
1 sibling, 0 replies; 7+ messages in thread
From: Martin Langhoff @ 2006-05-30 1:56 UTC (permalink / raw)
To: Grzegorz Kulewski; +Cc: Git Mailing List
On 5/30/06, Grzegorz Kulewski <kangur@polcom.net> wrote:
> I think I hit some problem in git-cvsimport or maybe cvsps or maybe (but
> unprobable) in network communication.
Looks like a cvsps issue. From ps, grab the whole commandine that is
used for the cvsps invocation and try to run it manually. cvsps has
some debugging flags, I would try adding -x -v to see more output, and
perhaps try with --no-cvs-direct
The other thing affecting you is the version of the remote cvs server.
cheers,
martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-cvsimport problem
2006-05-30 1:06 git-cvsimport problem Grzegorz Kulewski
2006-05-30 1:56 ` Martin Langhoff
@ 2006-05-30 4:37 ` Linus Torvalds
1 sibling, 0 replies; 7+ messages in thread
From: Linus Torvalds @ 2006-05-30 4:37 UTC (permalink / raw)
To: Grzegorz Kulewski; +Cc: Git Mailing List
On Tue, 30 May 2006, Grzegorz Kulewski wrote:
>
> and it looks like it hangs in the middle with message:
>
> cvs [rlog aborted]: unexpected '\x0' reading revision number in RCS file
> /home/cvsroot/lms/templates/noaccess.html,v
Are you sure that CVS archive isn't corrupted? That sounds like an
internal CVS error to me. Doing a "git cvsimport" will obviously get every
single version of every single file, so it will inevitably also hit errors
that you migt not hit with a regular "cvs co" (which will only get the
current version).
There's bound to be some "fsck for CVS" (since people edit files by hand,
and mistakes must happen), but I have no idea.
That said, it's not like we haven't had our share of cvsps issues and
other things, so who knows..
> and to my understanding does not do anything usefull next. Nothing is imported
> (there is only nearly empty .git tree).
Do "git log origin" to see what has been imported. If a cvsimport is
broken in the middle, you'll not get any checked-out state, and your HEAD
won't point to anything, but the "origin" branch has been created and
contains whatever has been imported so far.
Linus
^ permalink raw reply [flat|nested] 7+ messages in thread
* git-cvsimport problem
@ 2008-04-30 5:55 Alenoosh Baghumian
2008-04-30 10:12 ` Michael Haggerty
0 siblings, 1 reply; 7+ messages in thread
From: Alenoosh Baghumian @ 2008-04-30 5:55 UTC (permalink / raw)
To: git
Hi
I want to import a remote cvs repository to git , here's what I do :
$ mkdir git-test
$ chmod 775 git-test/
$ chmod +s git-test/
$ chmod +t git-test/
$ cd git-test
git-test$ git-cvsimport -k -i -d
:pserver:anonymous@lib-pkp.lib.sfu.ca:/cvs -C myproj ojs2 -v
the output is the following :
Initialized empty Git repository in /home/tux/git-test/myproj/.git/
Running cvsps...
.
.
.
cvs rlog: Logging ojs2/classes/session
cvs rlog: Logging ojs2/classes/site
cvs rlog: Logging ojs2/classes/submission
cvs rlog: Logging ojs2/classes/subscription
cvs rlog: Logging ojs2/classes/subscription/form
cvs rlog: Logging ojs2/classes/tasks
.
.
.
.
cvs rlog: Logging ojs2/pages/layoutEditor
cvs rlog: Logging ojs2/pages/login
cvs rlog: Logging ojs2/pages/manager
cvs rlog: Logging ojs2/pages/oai
cvs rlog: Logging ojs2/pages/payment
cvs rlog: Logging ojs2/pages/proofreader
cvs rlog: Logging ojs2/pages/reviewer
git-cvsimport: fatal: cvsps reported error
and every time I run this , it stops at the same point and gives that error.
Do you have any idea ?
Thanks in advance ...
Alenoosh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-cvsimport problem
2008-04-30 5:55 Alenoosh Baghumian
@ 2008-04-30 10:12 ` Michael Haggerty
0 siblings, 0 replies; 7+ messages in thread
From: Michael Haggerty @ 2008-04-30 10:12 UTC (permalink / raw)
To: Alenoosh Baghumian; +Cc: git
Alenoosh Baghumian wrote:
> I want to import a remote cvs repository to git [...]
> git-cvsimport: fatal: cvsps reported error
This is typically caused by the inability of cvsps to handle complicated
CVS repositories or by corruption in your CVS repository.
If you are doing a one-time conversion, try using cvs2git/cvs2svn [1].
It is capable of handling more complicated CVS repositories.
Even if you need incremental conversion, you might want to try cvs2git
anyway, as it might give you a better error message if your CVS
repository is corrupt in some way.
Michael
[1] http://cvs2svn.tigris.org/cvs2git.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* git-cvsimport problem
@ 2008-05-07 11:30 Alenoosh Baghumian
2008-05-28 12:15 ` Madhu
0 siblings, 1 reply; 7+ messages in thread
From: Alenoosh Baghumian @ 2008-05-07 11:30 UTC (permalink / raw)
To: git
Hi all
I run git-cvsimport in verbose mode and I see "* UNKNOWN LINE *
Branches:" many times during execution , will that cause any problem ?
And my repository doesn't include any branches ? so why do I see this
message ?
Thanks in advance .
Alenoosh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-cvsimport problem
2008-05-07 11:30 Alenoosh Baghumian
@ 2008-05-28 12:15 ` Madhu
0 siblings, 0 replies; 7+ messages in thread
From: Madhu @ 2008-05-28 12:15 UTC (permalink / raw)
To: git
* Alenoosh Baghumian <482192B9.2010406@opensourceclub.org> :
Wrote on Wed, 07 May 2008 16:00:01 +0430:
| I run git-cvsimport in verbose mode and I see "* UNKNOWN LINE *
| Branches:" many times during execution , will that cause any problem ?
| And my repository doesn't include any branches ? so why do I see this
| message ?
You must be using the beta version of cvsps, cvsps-2.2b1
,---- From the CHANGELOG:
|
| 2.2b1
| - add a new line item in the PatchSet output which indicates which
| branches fork off from after this PatchSet. This is actually
| the only way to correctly indicate the branching. The 'Ancestor
| Branch' thing is actually broken by design, and is now deprecated.
`----
git-cvsimport uses the -A ancestor mechanism (after patching cvsps-2.1
for some corner cases), this ignores the Branches line.
I'd be interested in knowing the git-cvsimport authors' opinion on
reworking it to use the Branches mechanism.
--
Madhu
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-05-28 12:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-30 1:06 git-cvsimport problem Grzegorz Kulewski
2006-05-30 1:56 ` Martin Langhoff
2006-05-30 4:37 ` Linus Torvalds
-- strict thread matches above, loose matches on Subject: below --
2008-04-30 5:55 Alenoosh Baghumian
2008-04-30 10:12 ` Michael Haggerty
2008-05-07 11:30 Alenoosh Baghumian
2008-05-28 12:15 ` Madhu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).