# [cvsimport] Import CVS repository from a specified date or branch name

3 messages from 2009-10-23 to 2009-10-23. Participants: Klaus Rödel, Andreas Schwab, Nick Woolley.
Thread: https://gitlist.dev/t/21335

## Klaus Rödel, 2009-10-23 07:52

Subject: [cvsimport] Import CVS repository from a specified date or branch name
Message-ID: <4AE160BC.5000608@vipco.de>
URL: https://gitlist.dev/e/4AE160BC.5000608%40vipco.de

```
Hello,

I have a very large and old (serveral years) cvs repository and I want 
to import this in git.
For my work it is not nessecary to import all the revision history from 
the cvs repository.
It is engough to import only the revisions from a specified date or 
branch name of the cvs repo.

Is this possible with git-cvsimport?
If yes, how?
If no, is it possible to include such a function in the git-cvsimport 
script?

Thanks for any help.

Greets Klaus

```

## Andreas Schwab, 2009-10-23 20:10

Subject: Re: [cvsimport] Import CVS repository from a specified date or branch name
Message-ID: <m2k4ylq3bz.fsf@igel.home>
URL: https://gitlist.dev/e/m2k4ylq3bz.fsf%40igel.home
In-Reply-To: <4AE160BC.5000608@vipco.de>

```
Klaus Rödel <klaus.roedel@vipco.de> writes:

> I have a very large and old (serveral years) cvs repository and I want to
> import this in git.
> For my work it is not nessecary to import all the revision history from
> the cvs repository.
> It is engough to import only the revisions from a specified date or branch
> name of the cvs repo.
>
> Is this possible with git-cvsimport?
> If yes, how?

You may be able to do that by passing the right arguments to cvsps.
From cvsps --help:

  -d <date1> -d <date2> if just one date specified, show
     revisions newer than date1.  If two dates specified,
     show revisions between two dates.
  -b <branch> restrict output to patch sets affecting history of branch

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

```

## Nick Woolley, 2009-10-23 21:38

Subject: Re: [cvsimport] Import CVS repository from a specified date or branch name
Message-ID: <4AE22251.7060901@yahoo.co.uk>
URL: https://gitlist.dev/e/4AE22251.7060901%40yahoo.co.uk
In-Reply-To: <4AE160BC.5000608@vipco.de>

```
Klaus Rödel wrote:
> I have a very large and old (serveral years) cvs repository and I want
> to import this in git.
> For my work it is not nessecary to import all the revision history from
> the cvs repository.
> It is engough to import only the revisions from a specified date or
> branch name of the cvs repo.
> 
> Is this possible with git-cvsimport?

I'm not certain if it is possible, if it is I suspect it might require invoking
cvsps first and then reading in the output generated with git-cvsimport, as
Andreas implies.

In any case, the underlying cvsps program is flawed, and  in it's current form,
although it seems to work ok for simple situations, I know for a fact that
didn't faithfully reproduce a rather big old CVS repository I tried it on. So if
you're planning on just importing once, and don't need incremental imports, from
my experience I'd suggest you'd fare better using cvs2git:

http://cvs2svn.tigris.org/cvs2git.html

Cheers,

N

```
