threads / discuss / 14546

git cvsimport and deleted files

Subject: git cvsimport and deleted files

## tl;dr

4 messages between Jul 20, 2008 and Jul 20, 2008.

replies: 3people: 3as markdown or json

Paul Mackerras· Jul 20, 2008, 12:09 UTC · lore

I just tried importing the CVS repository for a long-running project (ppp) into git using git cvsimport. It looks like git cvsimport doesn't notice when files have been deleted, so files that used to be present and were subsequently deleted are present in the git tree for the most recent commit.

Is this a known problem? Is it a limitation of cvsps? I know that cvs doesn't represent deletions explicitly anywhere, so I guess it's not surprising, but it is a bit annoying.

Paul.
Johannes Schindelin· Jul 20, 2008, 12:49 UTC · re: Paul Mackerras · lore

Re: git cvsimport and deleted files

Hi,
On Sun, 20 Jul 2008, Paul Mackerras wrote:
Show 5 quoted lines
> I just tried importing the CVS repository for a long-running project
> (ppp) into git using git cvsimport.  It looks like git cvsimport
> doesn't notice when files have been deleted, so files that used to be
> present and were subsequently deleted are present in the git tree for
> the most recent commit.

I never had that problem. See http://repo.or.cz/w/libvncserver.git?a=commit;h=8dead0759febaa7176507e1bde13ebd9d2a30720 for a commit that was imported with cvsimport.

So your issue must lie somewhere else.

BTW do you have the repository locally? Then you should import with cvs2svn or parsecvs instead. These programs are both faster and more accurate than cvsimport. And AFAIK you can use cvsimport on the generated repositories to update them incrementally.

Ciao, Dscho

Lars Noschinski· Jul 20, 2008, 18:04 UTC · re: Johannes Schindelin · lore

Re: git cvsimport and deleted files

* Johannes Schindelin <Johannes.Schindelin@gmx.de> [08-07-20 14:49]:
Show 11 quoted lines
>> I just tried importing the CVS repository for a long-running project
>> (ppp) into git using git cvsimport.  It looks like git cvsimport
>> doesn't notice when files have been deleted, so files that used to be
>> present and were subsequently deleted are present in the git tree for
>> the most recent commit.
>
>I never had that problem.  See 
>http://repo.or.cz/w/libvncserver.git?a=commit;h=8dead0759febaa7176507e1bde13ebd9d2a30720
>for a commit that was imported with cvsimport.
>
>So your issue must lie somewhere else.

I encountered such an issue some time ago in incremental mode, when another person did some cvs branch stuff. The error persisted even as I did a clean checkout, but disappeared, after I deleted all the cvsps cache files.

I failed to report the error, because I had not much time for debugging at that time and I would not have been able to publish the repository.

That's when I switched to fromcvs, which seems to work reliably so far (and much faster), but requires a local repository.

Lars Noschinski· Jul 20, 2008, 18:05 UTC · re: Johannes Schindelin · lore

Re: git cvsimport and deleted files

* Johannes Schindelin <Johannes.Schindelin@gmx.de> [08-07-20 14:49]:
Show 11 quoted lines
>>I just tried importing the CVS repository for a long-running project
>>(ppp) into git using git cvsimport.  It looks like git cvsimport
>>doesn't notice when files have been deleted, so files that used to be
>>present and were subsequently deleted are present in the git tree for
>>the most recent commit.
>
>I never had that problem.  See
>http://repo.or.cz/w/libvncserver.git?a=commit;h=8dead0759febaa7176507e1bde13ebd9d2a30720
>for a commit that was imported with cvsimport.
>
>So your issue must lie somewhere else.

I encountered such an issue some time ago in incremental mode, when another person did some cvs branch stuff. The error persisted even as I did a clean checkout, but disappeared, after I deleted all the cvsps cache files.

I failed to report the error, because I had not much time for debugging at that time and I would not have been able to publish the repository.

That's when I switched to fromcvs, which seems to work reliably so far (and much faster), but requires a local repository.

← back to recent threads