threads / discuss / 11963

Any tricks for speeding up cvsps?

Subject: Any tricks for speeding up cvsps?

## tl;dr

9 messages between Feb 8, 2008 and Feb 9, 2008.

replies: 8people: 6as markdown or json

Paul Gardiner· Feb 8, 2008, 09:24 UTC · lore
Hi,

I'm trying to convert a huge cvs repository. I've left cvsps running for days. First attempt, stderr filled my disc with warnings about tags that couldn't be associated with any one commit, without producing anything from stdout. I'm now redirecting stderr to /dev/null, but it still just sits there producing nothing. Is git-cvsimport infeasible for large repositories, or are there tricks I might use?

P.
Karl Hasselström· Feb 8, 2008, 09:48 UTC · re: Paul Gardiner · lore

Re: Any tricks for speeding up cvsps?

On 2008-02-08 09:24:44 +0000, Paul Gardiner wrote:
Show 7 quoted lines
> I'm trying to convert a huge cvs repository. I've left cvsps running
> for days. First attempt, stderr filled my disc with warnings about
> tags that couldn't be associated with any one commit, without
> producing anything from stdout. I'm now redirecting stderr to
> /dev/null, but it still just sits there producing nothing. Is
> git-cvsimport infeasible for large repositories, or are there tricks
> I might use?

This topic comes up on the list every once in a while; try searching the list archives.

I seem to recall that for heavy imports, the Subversion CVS importer is popular. I don't know if it can give you a git repository directly, or if you'll have to go via svn.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Michael Haggerty· Feb 8, 2008, 12:02 UTC · re: Karl Hasselström · lore

Re: Any tricks for speeding up cvsps?

Karl Hasselström wrote:
Show 16 quoted lines
> On 2008-02-08 09:24:44 +0000, Paul Gardiner wrote:
> 
>> I'm trying to convert a huge cvs repository. I've left cvsps running
>> for days. First attempt, stderr filled my disc with warnings about
>> tags that couldn't be associated with any one commit, without
>> producing anything from stdout. I'm now redirecting stderr to
>> /dev/null, but it still just sits there producing nothing. Is
>> git-cvsimport infeasible for large repositories, or are there tricks
>> I might use?
> 
> This topic comes up on the list every once in a while; try searching
> the list archives.
> 
> I seem to recall that for heavy imports, the Subversion CVS importer
> is popular. I don't know if it can give you a git repository directly,
> or if you'll have to go via svn.

The trunk version of cvs2svn [1] can convert directly from CVS to git, including branches and tags. Recently I wrote up better documentation [2] for using cvs2svn to convert to git.

Please direct suggestions, bug reports, or offers of help to the cvs2svn mailing lists [3] or irc channel [4].

Michael Haggerty

[1] http://cvs2svn.tigris.org [2] http://cvs2svn.tigris.org/cvs2git.html [3] http://cvs2svn.tigris.org/servlets/ProjectMailingListList [4] irc.freenode.net, channel #cvs2svn

Johannes Sixt· Feb 8, 2008, 09:57 UTC · re: Paul Gardiner · lore

Re: Any tricks for speeding up cvsps?

Paul Gardiner schrieb:
Show 6 quoted lines
> I'm trying to convert a huge cvs repository. I've left cvsps running for
> days. First attempt, stderr filled my disc with warnings about tags that
> couldn't be associated with any one commit, without producing anything
> from stdout. I'm now redirecting stderr to /dev/null, but it still just
> sits there producing nothing.  Is git-cvsimport infeasible for large
> repositories, or are there tricks I might use?
I've used fast-export (not git-fast-export) to convert a CVS repository:
http://repo.or.cz/w/fast-export.git
It worked better than git-cvsimport because the repository was a real mess.
-- Hannes
Paul Gardiner· Feb 8, 2008, 10:11 UTC · re: Johannes Sixt · lore

Re: Any tricks for speeding up cvsps?

Johannes Sixt wrote:
Show 5 quoted lines
> I've used fast-export (not git-fast-export) to convert a CVS repository:
> 
> http://repo.or.cz/w/fast-export.git
> 
> It worked better than git-cvsimport because the repository was a real mess.

That looks to require going either via svn or mercurial. Is that right? And if so, which did you find best?

P.
Johannes Sixt· Feb 8, 2008, 10:33 UTC · re: Paul Gardiner · lore

Re: Any tricks for speeding up cvsps?

Paul Gardiner schrieb:
Show 10 quoted lines
> Johannes Sixt wrote:
>> I've used fast-export (not git-fast-export) to convert a CVS repository:
>>
>> http://repo.or.cz/w/fast-export.git
>>
>> It worked better than git-cvsimport because the repository was a real
>> mess.
> 
> That looks to require going either via svn or mercurial. Is that right?
> And if so, which did you find best?
You are right. Because I'm utterly confused. I actually used fromcvs/togit:
http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs
Please bear with me; I did this about a year ago. Sorry for the noise.
Be warned that fromcvs/togit does not convert tags.
-- Hannes
Paul Gardiner· Feb 9, 2008, 08:32 UTC · re: Johannes Sixt · lore

Re: Any tricks for speeding up cvsps?

Johannes Sixt wrote:
Show 18 quoted lines
> Paul Gardiner schrieb:
>> Johannes Sixt wrote:
>>> I've used fast-export (not git-fast-export) to convert a CVS repository:
>>>
>>> http://repo.or.cz/w/fast-export.git
>>>
>>> It worked better than git-cvsimport because the repository was a real
>>> mess.
>> That looks to require going either via svn or mercurial. Is that right?
>> And if so, which did you find best?
> 
> You are right. Because I'm utterly confused. I actually used fromcvs/togit:
> 
> http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs
> 
> Please bear with me; I did this about a year ago. Sorry for the noise.
> 
> Be warned that fromcvs/togit does not convert tags.

That's amazing. Less than an hour to for the initial conversion, and just minutes to progressively sync up.

Thanks to everyone for all the usefull feedback I've received here.
Cheers,
	Paul.
Johannes Schindelin· Feb 8, 2008, 12:23 UTC · re: Paul Gardiner · lore

Re: Any tricks for speeding up cvsps?

Hi,
On Fri, 8 Feb 2008, Paul Gardiner wrote:
Show 6 quoted lines
> I'm trying to convert a huge cvs repository. I've left cvsps running for 
> days. First attempt, stderr filled my disc with warnings about tags that 
> couldn't be associated with any one commit, without producing anything 
> from stdout. I'm now redirecting stderr to /dev/null, but it still just 
> sits there producing nothing.  Is git-cvsimport infeasible for large 
> repositories, or are there tricks I might use?

The obvious thing is to have the CVS repository locally. And then on a ramdisk.

Hth, Dscho

Jakub Narebski· Feb 8, 2008, 12:24 UTC · re: Paul Gardiner · lore

Re: Any tricks for speeding up cvsps?

Paul Gardiner <osronline@glidos.net> writes:
Show 7 quoted lines
> I'm trying to convert a huge cvs repository. I've left cvsps running
> for days. First attempt, stderr filled my disc with warnings about
> tags that couldn't be associated with any one commit, without
> producing anything from stdout. I'm now redirecting stderr to
> /dev/null, but it still just sits there producing nothing.  Is
> git-cvsimport infeasible for large repositories, or are there tricks
> I might use?

Please check other tools to import from CVS; they are mentioned on the

  http://git.or.cz/gitwiki/InterfacesFrontendsAndTools
wiki page ("Interaction with other Revision Control Systems" section)
-- 
Jakub Narebski
Poland
ShadeHawk on #git

← back to recent threads