LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-31-2007, 07:38 AM   #1
Sey
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.

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 07:40 AM.
 
Old 11-01-2007, 01:18 AM   #2
dwhitney67
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.

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.
 
  


Reply

Tags
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 02:25 AM
Windows added 5 hours to file timestamp idc12 Linux - General 3 10-12-2006 04:02 PM
monitoring file added to a directory / subdirectories abhi_abhijith Programming 4 02-13-2006 07:25 AM
9.2 partitions not added into a 10.1 file system choco66 Mandriva 1 12-10-2004 05:09 PM
File system upset by added IDE drive jerrymc Linux - Hardware 6 07-11-2002 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration