git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ilya Basin <basinilya@gmail.com>
To: "Eric S. Raymond" <esr@thyrsus.com>
Cc: git@vger.kernel.org
Subject: Re[2]: State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc)
Date: Sat, 20 Apr 2013 14:22:51 +0400	[thread overview]
Message-ID: <214169596.20130420142251@gmail.com> (raw)
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?

  parent reply	other threads:[~2013-04-20 10:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-14  8:18 cvsps: bad usage: invalid argument --norc Ilya Basin
2013-04-14  8:48 ` Ilya Basin
2013-04-14  9:47   ` John Keeping
2013-04-14 11:33   ` State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc) Eric S. Raymond
2013-04-15  5:00     ` Michael Haggerty
2013-04-15 17:58     ` Ilya Basin
2013-04-15 20:43       ` Jakub Narębski
2013-04-18  9:43       ` Eric S. Raymond
2013-04-19  5:29         ` Does git fast-import support deltas? Ilya Basin
2013-04-19  5:44           ` Felipe Contreras
2013-04-19  6:13           ` Jonathan Nieder
2013-04-20 10:22         ` Ilya Basin [this message]
2013-04-23 17:50           ` State of CVS-to-git conversion tools (Was: Re: cvsps: bad usage: invalid argument --norc) Eric S. Raymond
2013-04-23 18:30             ` Re[2]: " Ilya Basin
2013-04-23 21:06               ` Eric S. Raymond
2013-04-24  4:47                 ` Re[2]: " Ilya Basin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=214169596.20130420142251@gmail.com \
    --to=basinilya@gmail.com \
    --cc=esr@thyrsus.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).