# git cvsimport error

7 messages from 2008-05-21 to 2008-05-24. Participants: Adam Mercer, Craig L. Ching, Shawn O. Pearce.
Thread: https://gitlist.dev/t/13605

## Adam Mercer, 2008-05-21 19:14

Subject: git cvsimport error
Message-ID: <799406d60805211214r6315268ard77678eb2ec5d732@mail.gmail.com>
URL: https://gitlist.dev/e/799406d60805211214r6315268ard77678eb2ec5d732%40mail.gmail.com

```
Hi

I'm trying to convert a CVS repository to GIT (1.5.5.1 on Intel Mac OS
X 10.5.2) using the following:

[ram@mimir ~]$ git cvsimport -v -d :local:/Users/ram/test_cvs -C glue.git glue
Initialized empty Git repository in /Users/ram/glue.git/.git/
Running cvsps...
cvs_direct initialized to CVSROOT /Users/ram/test_cvs
cvs rlog: Logging glue
cvs rlog: Logging glue/bin
cvs rlog: Logging glue/debian
cvs rlog: Logging glue/doc
cvs rlog: Logging glue/etc
cvs rlog: Logging glue/glue
cvs rlog: Logging glue/glue/ligolw
cvs rlog: Logging glue/glue/ligolw/utils
cvs rlog: Logging glue/glue/segfindserver
cvs rlog: Logging glue/glue/segfindserver/segments_1_7
cvs rlog: Logging glue/man
cvs rlog: Logging glue/man/man1
cvs rlog: Logging glue/sbin
cvs rlog: Logging glue/src
cvs rlog: Logging glue/src/conf
cvs rlog: Logging glue/src/conf/db2
cvs rlog: Logging glue/src/conf/mysql
cvs rlog: Logging glue/src/conf/q_replication
cvs rlog: Logging glue/src/conf/q_replication/cit
cvs rlog: Logging glue/src/conf/q_replication/lho
cvs rlog: Logging glue/src/conf/q_replication/llo
cvs rlog: Logging glue/src/segments
cvs rlog: Logging glue/test
Fetching glue/ldbd.py   v 1.1
Unknown: error
[ram@mimir ~]$

How can I get a more verbose error message to try and fix what's going
wrong here?

Cheers

Adam

```

## Adam Mercer, 2008-05-21 19:39

Subject: Re: git cvsimport error
Message-ID: <799406d60805211239n42c39ea6iaa41a9ab379cafaa@mail.gmail.com>
URL: https://gitlist.dev/e/799406d60805211239n42c39ea6iaa41a9ab379cafaa%40mail.gmail.com
In-Reply-To: <799406d60805211214r6315268ard77678eb2ec5d732@mail.gmail.com>

```
On Wed, May 21, 2008 at 2:14 PM, Adam Mercer <ramercer@gmail.com> wrote:

> Fetching glue/ldbd.py   v 1.1
> Unknown: error
> [ram@mimir ~]$

Done some digging with cvsps itself and it looks like the lbdb.py,v
file has become corrupted from a very early version...

Is there a way that I can tell git to ignore the early revisions?

Cheers

Adam

```

## Craig L. Ching, 2008-05-21 19:51

Subject: RE: git cvsimport error
Message-ID: <63BEA5E623E09F4D92233FB12A9F794301FC8B2D@emailmn.mqsoftware.com>
URL: https://gitlist.dev/e/63BEA5E623E09F4D92233FB12A9F794301FC8B2D%40emailmn.mqsoftware.com
In-Reply-To: <799406d60805211239n42c39ea6iaa41a9ab379cafaa@mail.gmail.com>

```

> On Wed, May 21, 2008 at 2:14 PM, Adam Mercer 
> <ramercer@gmail.com> wrote:
> 
> > Fetching glue/ldbd.py   v 1.1
> > Unknown: error
> > [ram@mimir ~]$
> 
> Done some digging with cvsps itself and it looks like the 
> lbdb.py,v file has become corrupted from a very early version...
> 
> Is there a way that I can tell git to ignore the early revisions?
> 
Not a cvsps expert, but I'm at the same point as you in converting a
repo ;-)  Would the -d option on cvsps do what you want?

> Cheers
> 
> Adam
> --
> 
Cheers,
Craig

```

## Adam Mercer, 2008-05-23 20:01

Subject: Re: git cvsimport error
Message-ID: <799406d60805231301l18c288ebt86a028e1ef795d9d@mail.gmail.com>
URL: https://gitlist.dev/e/799406d60805231301l18c288ebt86a028e1ef795d9d%40mail.gmail.com
In-Reply-To: <63BEA5E623E09F4D92233FB12A9F794301FC8B2D@emailmn.mqsoftware.com>

```
On Wed, May 21, 2008 at 2:51 PM, Craig L. Ching <cching@mqsoftware.com> wrote:

> Not a cvsps expert, but I'm at the same point as you in converting a
> repo ;-)  Would the -d option on cvsps do what you want?

It should but I can't get it too work, the ldbd.py,v file is OK from
2003/05/06 07:39:52, so after consulting the man pages for both
git-cvsimport and cvsps I ran the following

$ git cvsimport -v  -p "-d" -p "2003/05/06 07:40:00"
-d:local:/Users/ram/test_cvs -C glue.git glue

yet git/cvsps still tries to retrieve the bad revisions, prior to the
above date. I'm clearly missing something?

Cheers

Adam

```

## Adam Mercer, 2008-05-23 20:24

Subject: Re: git cvsimport error
Message-ID: <799406d60805231324o209692d2o59a700024e52100c@mail.gmail.com>
URL: https://gitlist.dev/e/799406d60805231324o209692d2o59a700024e52100c%40mail.gmail.com
In-Reply-To: <63BEA5E623E09F4D92233FB12A9F794301FC8BCA@emailmn.mqsoftware.com>

```
On Fri, May 23, 2008 at 3:05 PM, Craig L. Ching <cching@mqsoftware.com> wrote:
> Yeah, I don't know much about it at all, but my advice would be to run
> cvsps by itself and generate a cache that git-fast-import can import.
> That's the approach we're taking because it gives us a chance to figure
> out where things have gone wrong as we have some bad, buggy commits in
> our archive (CVS created the bad commits).

I thought of using git-fast-import but the problem is that the CVS
repository is still in use so I need to keep the git and CVS repos
synchronised and it seems like git-fast-import can't be used in this
case.

Cheers

Adam

```

## Shawn O. Pearce, 2008-05-23 20:30

Subject: Re: git cvsimport error
Message-ID: <20080523203025.GU29038@spearce.org>
URL: https://gitlist.dev/e/20080523203025.GU29038%40spearce.org
In-Reply-To: <799406d60805231324o209692d2o59a700024e52100c@mail.gmail.com>

```
Adam Mercer <ramercer@gmail.com> wrote:
> On Fri, May 23, 2008 at 3:05 PM, Craig L. Ching <cching@mqsoftware.com> wrote:
> > Yeah, I don't know much about it at all, but my advice would be to run
> > cvsps by itself and generate a cache that git-fast-import can import.
> > That's the approach we're taking because it gives us a chance to figure
> > out where things have gone wrong as we have some bad, buggy commits in
> > our archive (CVS created the bad commits).
> 
> I thought of using git-fast-import but the problem is that the CVS
> repository is still in use so I need to keep the git and CVS repos
> synchronised and it seems like git-fast-import can't be used in this
> case.

You can run fast-import in incremental behavior.  You just have to
restart each branch with a "from refs/heads/master^0" or whatever.
There's some discussion of this in the (rather large) fast-import
man page.

-- 
Shawn.

```

## Adam Mercer, 2008-05-24 05:23

Subject: Re: git cvsimport error
Message-ID: <799406d60805232223q3e2e0cf3k9abfe97ca94d3eff@mail.gmail.com>
URL: https://gitlist.dev/e/799406d60805232223q3e2e0cf3k9abfe97ca94d3eff%40mail.gmail.com
In-Reply-To: <20080523203025.GU29038@spearce.org>

```
On Fri, May 23, 2008 at 3:30 PM, Shawn O. Pearce <spearce@spearce.org> wrote:

> You can run fast-import in incremental behavior.  You just have to
> restart each branch with a "from refs/heads/master^0" or whatever.
> There's some discussion of this in the (rather large) fast-import
> man page.

Thanks I'll take a look at that as I've found that I can pass the -d
option to cvsps which _should_ tell it to ignore revisions before a
certain date, but even doing this cvsimport tries to import the broken
revision prior date!

Cheers

Adam

```
