info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file locking in cvs


From: Jenn Vesperman
Subject: Re: file locking in cvs
Date: 09 Oct 2002 09:36:47 +1000

On Tue, 2002-10-08 at 22:18, Iqbal Shaikh wrote:
> Hi all,
> 
> Would like to know if we need to edit any admin file in CVSROOT
> to enable locking of files in cvs.

Check info cvs, especially 'Multiple Developers' and the subheadings
under Multiple Developers called 'Watches' and 'Choosing a model'.

Somewhere in there, you'll also find a reference to the 'rcslock'
program which is in the contrib directory of the source.

I suspect by your question that you're trying to use cvs admin -l and
cvs admin -u to create reserved checkouts. Unfortunately, without using
the 'rcslock' program, that doesn't work. Those commands use the rcs
locking mechanism, which is honoured by RCS but I believe not by CVS (at
least, not by default).

CVS is designed for the concurrent development of files, and uses a
merging model - it's explained in info cvs#Choosing_a_model. 

The best way I know to simulate exclusive development or file locking is
to use cvs watch and perhaps the rcslock program.

Read the info cvs sections I've pointed you at, you'll probably be able
to take it from there. Ask if you need more help after that. :)


Jenn V.
-- 
    "Do you ever wonder if there's a whole section of geek culture 
                you miss out on by being a geek?" - Dancer.

address@hidden     http://anthill.echidna.id.au/~jenn/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]