Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-31-2007, 08:38 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
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.

$ 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:

$ 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.

Last edited by Sey; 10-31-2007 at 08:40 AM.
Old 11-01-2007, 02:18 AM   #2
Senior Member
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

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


1. Did you initialize your CVSROOT?

$ cvs init
2. Did you initialize your work-area?

$ 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.

$ 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.


cvs, error

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what new kernel information can be added in proc file swift_a2002 Linux - Kernel 2 06-03-2007 03:25 AM
Windows added 5 hours to file timestamp idc12 Linux - General 3 10-12-2006 05:02 PM
monitoring file added to a directory / subdirectories abhi_abhijith Programming 4 02-13-2006 08:25 AM
9.2 partitions not added into a 10.1 file system choco66 Mandriva 1 12-10-2004 06:09 PM
File system upset by added IDE drive jerrymc Linux - Hardware 6 07-11-2002 01:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration