Browse our categories and find questions you could answer!
Services
Questions
Thought of a category that is not present? Contact Us!
CVS (concurent version system) : How to freeze a file/folder
Question from Cybercinglet
Reward : 2.00 $
Tuesday, Jan 2, 2007 - 9:03 AM PST
Computer -Software -Others

Hi folks,

I am currently wondering if I could temporary block access to some CVS files and folders (same command as freeze in SourceSafe).

Does bananask people have an answer for me ?

Gueute
Monday, Mar 5, 2007 - 4:51 AM PST
Gueute received 2.00 $ for this answer

Hi Nicolas,

 

As far as I know, you can lock files (but not folders) by sending manually this command in WinCVS 2.0.2.4 (ctrl+L) :

cvs admin -l "file name"  -> to lock a file. Nobody can commit.
cvs adming -u "file name"  -> to unlock the file.

Here is an comment found on the web : http://www.linux.ie/articles/tutorials/cvs.php
"If you want exclusive access to the file (i.e. you're doing major restructuring of it), you can lock it, by running "cvs admin -l" on it. (Of course, when you're finished editing the file, run "cvs admin -u" on it. The failure to do this can be the cause of...accidents. This is how developers get brutally beaten. This is also why only CVS users that are in the UNIX group called 'cvsadmin' on the CVS server itself can lock files.)"

I hope it answers your question.

G. 

Cybercinglet
Tuesday, Mar 6, 2007 - 7:17 AM PST

Hey Geut,

Cool! I never used the command "admin". I see that it can be used for other purposes that are useful too like changing the binary attribute of the files

Smiley