[Top][All Lists]

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

Re: Locking CVS

From: S I
Subject: Re: Locking CVS
Date: Mon, 11 Jul 2005 09:11:30 -0700

Thank you. I'm not sure what /bin/test represents? To be replaced with the path to my proj?

----Original Message Follows----
From: "Mark D. Baushke" <address@hidden>
To: "S I" <address@hidden>
CC: address@hidden
Subject: Re: Locking CVS
Date: Mon, 11 Jul 2005 08:49:43 -0700
MIME-Version: 1.0
Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.211); Mon, 11 Jul 2005 08:49:51 -0700 Received: from ( [])by (8.11.3/8.9.3) with ESMTP id j6BFnn912917;Mon, 11 Jul 2005 08:49:49 -0700 (PDT)(envelope-from address@hidden) Received: from ( [])by (8.11.3/8.11.3) with ESMTP id j6BFnhj59521;Mon, 11 Jul 2005 08:49:43 -0700 (PDT)(envelope-from address@hidden)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
References: <address@hidden>
X-Mailer: MH-E 7.84+cvs; nmh 1.0.4; GNU Emacs 21.3.1
X-Face: #8D_6URD2G%vC.hzU<dI&#Y9szHj$'mGtUq&d=rXy^L$-=G_-LmZ^5!Fszk:yXZp$k\nTF? 8Up0!v/%1Q[(d?ES0mQW8dRCXi18gK)luJu)loHk,}4{Vi`yX?p?crF5o:LL{6#eiO:(E:YMxLXULB k|'a*EjN.B&L+[J!PhJ*aX0n:5/
Mail-Followup-To: info-cvs <address@hidden>
Return-Path: address@hidden
X-OriginalArrivalTime: 11 Jul 2005 15:49:51.0677 (UTC) FILETIME=[2CB886D0:01C58630]

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]