![]() |
CVS (concurent version system) : How to freeze a file/folder |
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 ?
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.
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
