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

Re[2]: State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc)

From
IBIlya Basin <basinilya@gmail.com>
Date
Apr 20, 2013, 10:22 UTC
Message-ID
<214169596.20130420142251@gmail.com>
In-Reply-To
<20130418094326.GB11038@thyrsus.com>
Hi Eric.

ESR> cvs-fast-export does not have incremental-import support. ESR> Whether git-cvs-import has it depend on which version you have ESR> and what backend it it is using. I don't maintain that wrapper. Did you mean "git-fast-import"? Or do you know any wrapper that already uses cvsps3 --fast-export?

>> I need it, because full import takes too long.
>> The central repo of my employer is CVS, other people commit to it and
>> I use git internally to be able to tidy my commit history before
>> exporting to CVS.

ESR> You are out of luck. That feature was dependent on a very fragile ESR> coupling... OK, OK, I get it.

First of all, I think cvsps3 has almost everithing required for
incremental import: one could just take the date of the last commit
and invoke cvs ps with the '-d' flag. However, to import new commits
into existing branches the stream should contain the "from" command in
oldest commits in each branch (now missing).
If the branch already exists in the target git repo, it's easy to
refer it in the stream:
    from refs/heads/branchname^0

But if the branch is new, but it's parent commit is already imported, I guess, the only way to refer it is by its SHA-1 Eric, what parent information can cvsps provide for the first commit in a branch, when invoked with the '-d' flag?

Previous: Jonathan NiederNext: Eric S. Raymond
Message 12 of 16 in “cvsps: bad usage: invalid argument --norc”
  1. Ilya BasinApr 14, 2013
  2. Ilya BasinApr 14, 2013
  3. John KeepingApr 14, 2013
  4. State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc)Eric S. Raymond, Apr 14, 2013
  5. Michael HaggertyApr 15, 2013
  6. Ilya BasinApr 15, 2013
  7. Jakub NarębskiApr 15, 2013
  8. Eric S. RaymondApr 18, 2013
  9. Does git fast-import support deltas?Ilya Basin, Apr 19, 2013
  10. Felipe ContrerasApr 19, 2013
  11. Jonathan NiederApr 19, 2013
  12. Re[2]: State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc)Ilya Basin, Apr 20, 2013
  13. Eric S. RaymondApr 23, 2013
  14. Re[2]: State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc)Ilya Basin, Apr 23, 2013
  15. Eric S. RaymondApr 23, 2013
  16. Re[2]: State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc)Ilya Basin, Apr 24, 2013

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.