LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CVS: one particular file-name can't be added (https://www.linuxquestions.org/questions/linux-newbie-8/cvs-one-particular-file-name-cant-be-added-596059/)

Sey 10-31-2007 07:38 AM

CVS: one particular file-name can't be added
 
I had some problems recently, where the cvs-client hung, and I had to kill it. Consequently, there where a lot of lock files hanging around on the CVS server. I deleted these, and tried to do things again. After a few more lockups and a few more deletion of lock files, I finally get it all working.

My problem is best described with an example. This is what happens in a clean directory.

Code:

$ cvs co master | grep -i "3dmodel-car2.dia"
cvs checkout: Updating master
cvs checkout: Updating master/diagrams
cvs checkout: nothing known about master/diagrams/3dmodel-car2.dia
cvs checkout: Updating master/owl
cvs checkout: Updating master/prot-xml
cvs checkout: Updating master/save

Note the line about "nothing known about ..." thats the culprit.
Standing in the same directory as the above command was launched in,
[code]find -iname '3dmodel-car2.dia'[\code] gives nothing.

I've tried this, but get an error:

Code:

$ touch master/diagrams/3dmodel-car2.dia
$ cvs add master/diagrams/3dmodel-car2.dia
cvs add: scheduling file `master/diagrams/3dmodel-car2.dia' for addition
cvs add: use 'cvs commit' to add this file permanently
$ cvs commit master
cvs commit: Examining master
cvs commit: Examining master/diagrams
cvs: hash.c:312: findnode: Assertion `key != ((void *)0)' failed.
cvs [commit aborted]: received abort signal

After I delete it, remove it, and commit the repo, everything is fine. Except for the annoying message.

Adding files in the same directory with other names does not work. Including the name "3dmodel-car3.dia"

I am at loss, what causes this?

EDIT: This may be in the wrong forum. But I didnt know which to chose.

dwhitney67 11-01-2007 01:18 AM

I'm running CVS version 1.12.13 on my Ubuntu 7.04 system. Recreating the same scenario you presented worked without any hassles.

Questions...

1. Did you initialize your CVSROOT?

Code:

$ cd $CVSROOT
$ cvs init

2. Did you initialize your work-area?

Code:

$ cd workarea
$ cvs co .

After I did the above, I created master/diagrams, and added them both to CVS, then created the file and successfully added it to the CVSROOT.

Code:

$ cd workarea
$ mkdir -p master/diagrams
$ cvs add master
$ cvs add master/diagrams
$ touch master/diagrams/3dmodel-car2.dia
$ cvs add master/diagrams/3dmodel-car2.dia
$ cvs commit -m "initial release" master

Anyhow, if you are still having issues, I would recommend removing CVS from your system and then reinstalling it.

P.S. My Fedora 7 system has version 1.11.22, and it also works as shown above.


All times are GMT -5. The time now is 03:45 AM.