aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Unable to Checkout file in CVS-Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Unable to Checkout file in CVS-Linux" Watch "Unable to Checkout file in CVS-Linux" New topic
Author

Unable to Checkout file in CVS-Linux

Rajesh Kandhasamy
Greenhorn

Joined: Sep 19, 2005
Posts: 15
Hi,

when i try to check out file from CVS server which is installed in Linux

"cvs [checkout aborted]: Cannot check out files into the repository itself"

Command which i execute is [giri@101/udp cvs]$ cvs co cvstest,

please help me sortout the issue,

Thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Originally posted by Rajesh Kandhasamy:
Hi,

"cvs [checkout aborted]: Cannot check out files into the repository itself"


The CVS repository is a database in the form of a directory tree. Neither the root of that tree nor any of its children should be used as project working directories - they are the archive of a project, not the project itself.

In other words, if my CVS respository was /usr/local/CVSrepository, I would not "cd /usr/local/CVSrepository; co cvstest" nor would I cd to /usr/local/CVSrepository/cvstest to do work. As far as I'm concerned, the whole /usr/local/CVSrepository directory tree doesn't really exist - it's just a black box that should only be accessed via CVS client applications.

To work on a project, I'd do something like the following:



"xxxxx" is your userid. It might be optional, but I spend so much time on mixed networks that I've developed the habit.
[ December 07, 2006: Message edited by: Tim Holloway ]

Customer surveys are for companies who didn't pay proper attention to begin with.
Rajesh Kandhasamy
Greenhorn

Joined: Sep 19, 2005
Posts: 15
Hi TIM,

Thanks for your kindly Response,

Am getting the following error while Checking out the directory which

resides under CVSROOT directory,

cvs checkout: Updating test
cvs checkout: cannot create read lock in repository `/home/cvs/test': No such file or directory
cvs [checkout aborted]: read lock failed - giving up

But i found the directory is there which is created by root user,

Am Trying to install cvs1.11.22 on Linux 2.6.9-22.E ,

If you provide me the Installation documnet for cvs, which in

details ,because am new to both Linux and cvs
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30951
    
158

cannot create read lock in repository `/home/cvs/test': No such file or directory

Does this directory exist? Does your user id have write access to it?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to Checkout file in CVS-Linux