git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git cvsimport"

From
TMTommy M. McGuire <mcguire@crsr.net>
Date
Jun 8, 2005, 05:32 UTC
Message-ID
<20050608053240.GA28007@immutable.crsr.net>
In-Reply-To
<Pine.LNX.4.58.0506071556000.2286@ppc970.osdl.org>
On Tue, Jun 07, 2005 at 04:03:53PM -0700, Linus Torvalds wrote:
Show 28 quoted lines
> 
> Ok,
>  here's something for testers and/or documentation people: I wrapped a 
> little script around cvs2git (which I imported from the git tools thing), 
> and now you can do
> 
> 	git cvsimport <cvsroot> <modulename>
> 
> and it might all "just work".
> 
> Right now the little sript is actually being anal and checking that 
> CVSROOT is a directory, even though I think it all _should_ work even if 
> CVSROOT is remote too. But I don't have any remote things to test, and for 
> all I know maybe performance is horrible, so for now it artificially 
> limits it to locally accessible CVS repos.
> 
> I'd love it if somebody tested the remote case (and, if it works, sends me
> a patch that just removes the anal tests in git-cvsimport-script), and
> maybe even updated the information a bit more.. As it is, that
> Documentation/cvs-migration.txt file is a bit on the light side.
> 
> Finally, I don't know what to do about cvsps options. It seems that the 
> default time-fuzz is a bit too long for some projects, so at least that 
> one should be overridable. So my silly script is not exactly wonderful, 
> but I think it's more approachable than people doing the magic by hand 
> (and forgetting to set TZ to UTC and the "-A" flag etc etc).
> 
> 		Linus
It seems to work for me.  I'm still sanity checking the results.

Performance is indeed horrible for the remote case. I don't know how horrible it would be for someone in a sane environment, since I'm behind one of SBC's DSL gateways, which thinks (emphasis on "thinks") it is a nameserver.

The script produced by cvs2git checks out every revision of every file, right? Would "cvsps -g -p<dir>" improve cvs2git? I don't think it would help performance (it checks out the files to generate the patchset diffs (?)), but making the ugly someone else's problem is always good. Also, what about -x, to force cvsps to regenerate it's cached idea of the repository's patchsets?

cvsps seems a little weak on the whole error message idea (misspelling cvsroot leads to complaints about CVS versions).

-- 
Tommy McGuire
Previous: Linus TorvaldsNext: Tommy M. McGuire
Message 2 of 6 in “"git cvsimport"”
  1. Linus TorvaldsJun 7, 2005
  2. Tommy M. McGuireJun 8, 2005
  3. Re: "git cvsimport"Tommy M. McGuire, Jun 10, 2005
  4. git cvsimport sanity checkingTommy M. McGuire, Jun 10, 2005
  5. cvs-migration.txtTommy M. McGuire, Jun 10, 2005
  6. git cvsimport fuzz argumentTommy M. McGuire, Jun 10, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.