LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 10-31-2007, 08:38 AM   #1
Sey
LQ Newbie
 
Registered: Mar 2004
Posts: 9
Thanked: 0
CVS: one particular file-name can't be added


[Log in to get rid of this advertisement]
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.

Last edited by Sey; 10-31-2007 at 08:40 AM..
Sey is offline  
Tag This Post , ,
Reply With Quote
Old 11-01-2007, 02:18 AM   #2
dwhitney67
Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Ubuntu
Posts: 422
Thanked: 13
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.
dwhitney67 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 06:02 AM.

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