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

Re: files missing after converting a cvs repository to git

From
Andreas Ericsson <ae@op5.se>
Date
Oct 7, 2008, 06:08 UTC
Message-ID
<48EAFCEF.8030907@op5.se>
In-Reply-To
<799406d60810061502y417ec53o1a1f5cef800dfe45@mail.gmail.com>
Adam Mercer wrote:
Show 19 quoted lines
> Hi
> 
> One of the prrojects I am involved with is currently looking into
> migrating from cvs to git, therefore we have been investigating this
> by setting up a git repository that tracks cvs, however there are some
> very strange things going on and I was hoping someone could offer some
> insight into what is going on.
> 
> I use the following git cvsimport command to import the repository:
> 
> $ git cvsimport -v -a -i -k
> -d:pserver:user@server:port/path/to/cvs/repo -C /path/to/new/git/repo
> module
> 
> this ran successfully with no warnings or errors. However, when I
> checkout the new git repository that are several files missing from
> the git checkout that are present in the cvs checkout.
> 
> Does anyone know why this would happen, or how to find out?

Has the CVS repo been tampered with in the past? If so, it's entirely possible that checking out and working with CVS works just fine, but getting history into coherent changesets is impossible.

Can you checkout the offending (old) revisions using CVS? If so, there is indeed a bug in the cvs-importer. Otherwise, your CVS repo is hosed and you're reduced to running whatever conversion tool does the best job if you want to maintain history.

cvs2svn is apparently quite good at getting even the weirdest history right. Perhaps you can try that and then running "git svn" on the resulting svn repo?

Good luck. You'll probably need it :-/
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Adam MercerNext: Jakub Narebski
Message 2 of 7 in “files missing after converting a cvs repository to git”
  1. Adam MercerOct 6, 2008
  2. Andreas EricssonOct 7, 2008
  3. Jakub NarebskiOct 7, 2008
  4. Michael HaggertyOct 7, 2008
  5. Adam MercerOct 7, 2008
  6. Adam MercerOct 7, 2008
  7. Andreas EricssonOct 8, 2008

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.