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

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

From
Eric S. Raymond <esr@thyrsus.com>
Date
Apr 23, 2013, 17:50 UTC
Message-ID
<20130423175000.GA25994@thyrsus.com>
In-Reply-To
<214169596.20130420142251@gmail.com>

Apologies for the somewhat belated reply. I've been even busier than usual lately and am about to be traveling for a week.

Ilya Basin <basinilya@gmail.com>:
Show 7 quoted lines
> 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?

No, I meant git-cvs-import. I wrote a version of it that supports cvsps3, but Junio chose to keep the old wrapper. Apparently he would rather inflict cvsps2's rather serious known bugs on users than break backward compatibility even a little.

Show 8 quoted lines
> 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
Look at the -i option.  That may do what you need.
 
> 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?

At the moment it doesn't provide any at all. That case wasn't on my radar when I was fixing the code. If you can specify a behavior you think would be useful, I'm listening.

-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Previous: Ilya BasinNext: Ilya Basin
Message 13 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.