[Top][All Lists]

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

Re: Locking CVS

From: Mark D. Baushke
Subject: Re: Locking CVS
Date: Mon, 11 Jul 2005 08:49:43 -0700

Hash: SHA1

S I <address@hidden> writes:

> Hi everyone,
> I'm planning to lock cvs today getting ready for our release.  I
> realize with certain version control software nowadays you don't have
> to lock the repo and the developers can continue with their work.
> However, we're imposing and enforcing a few days for freeze and to
> regroup.
> Our repository resides on a linux box with :pserver method access from
> WinXP CVS DOS and Tortoise clients.  Could I just lock the repo by
> executing cvs admin -l or -L  or do I have to download some perl
> module to accomplish this? I need to lock our CVS repository today.
> Three projects reside in the repository, is it possible to lock them
> selectively or would admin -l lock the entire repo?

admin -l will not really do what you want.

It would probably be simplest to add something to your CVSROOT/commitinfo
to do the job and fail whenever the :pserver: userid was used.

If you have an 'id' command that accepts the -u option, and for example
if the 'id -u' command printed 12345 as your userid, you could add

For cvs 1.11.x

ALL /bin/test `id -u` = 12345

For cvs 1.12.x you might want to use

ALL /bin/test `id -u` = 12345 && : %r/%p %s

This should return a non-zero error code for anyone other than the user
with the uid 12345 which we would presume you would use your own userid
and that you would be accessing the repository outside of the :pserver:
method or have arranged for your :pserver: usage to use your real userid
rather than masking it with the system userid.

Other methods exist for just locking a single branch (such as the main
trunk) using something like the contrib/cvs_acls file that comes with
recent cvs distributions.

        Good luck,
        -- Mark
Version: GnuPG v1.2.3 (FreeBSD)


reply via email to

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