Skip to contentSkip to conversation

Any tricks for speeding up cvsps?

DISCUSSION Paul Gardiner 6 participants 9 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 7 lines · Paul Gardiner

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.

Signature · 2 lines
Karl Hasselström, [email protected]
      www.treskal.com/kalle
#2 lore raw
Quoted 10 lines · Karl Hasselström
Quoted 7 lines · Paul Gardiner

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?

Quoted 6 lines

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

#3 lore raw
In reply to Paul Gardiner
Quoted 6 lines · Paul Gardiner

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

#4 lore raw
Quoted 5 lines · Johannes Sixt

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.

#5 lore raw
Quoted 10 lines · Paul Gardiner
Quoted 6 lines · Johannes Sixt

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

#6 lore raw
Quoted 11 lines · Johannes Sixt
Quoted 9 lines · Paul Gardiner
Quoted 6 lines · Johannes Sixt

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?

Quoted 7 lines

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.

#7 lore raw
In reply to Paul Gardiner

Hi,

Quoted 6 lines · Paul Gardiner

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

#8 lore raw
In reply to Paul Gardiner
Quoted 7 lines · Paul Gardiner

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)

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git