info-cvs
[Top][All Lists]
Advanced

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

Re: permissions on branch


From: Shubhabrata Sengupta
Subject: Re: permissions on branch
Date: Tue, 15 May 2001 19:25:07 +0530

In pserver mode the CVS server makes a dir called /tmp/cvs-<pid> under which you would find the file you would want to checkin and the CVS subdirectory with the Entries file, which has the branch information. So nothing needs to be done on the client side.
 
I would send you the script tomorrow - it is getting late tonight and I need to go home (no net connection at home unfortunately)
 
Thanks
 
Shubho
 
-----Original Message-----
From: Nils Jakobson <address@hidden>
To: Shubhabrata Sengupta <address@hidden>
Date: Tuesday, May 15, 2001 6:37 PM
Subject: Re: permissions on branch


How you mean this, the CVS/Entries are on the client side. I'm using RedHat Linux as repository server
with WinCVS clients. I have to intercept the commit somehow thru wrapper or similar and then simply
refuse the commit if some condition is met. I dont know how exactly CVS internals work, but please send
me the scrip.
 
Thanks!
-Nils Jakobson
SWH Technology
----- Original Message -----
Sent: Tuesday, May 15, 2001 2:38 PM
Subject: Re: permissions on branch

You can do that by writing a script which parses the CVS/Entries file for the branch info and then restrict the checkin if the branch falls in your restricted list.
 
You would need to plug this script into the commitinfo file, since the name of the file to be checked in would be passed to this script which you would use to parse the CVS/Entries for the branch info.
 
You might also like to put this script into some subdirectory of the CVSROOT directory and put an entry in the checkoutlist file so that a copy of the script is always checked out as soon as you checkin any changes to this script.
 
I can send you a sample script if you need one.
 
Thanks
 
Shubho
-----Original Message-----
From: Nils Jakobson <address@hidden>
To: address@hidden <address@hidden>
Date: Tuesday, May 15, 2001 4:58 PM
Subject: permissions on branch


 
Hello, maybe this already has been discussed and there is solution.
What I'm looking for is how to set permissions on specific branch names,
i mean, make some branches read-only. This is necessery because
it happens that wincvs users perform commits where they should not.
I believe this can be scripted in the CVS, but how and from where to
invoke it? It could be great to have config file with list of branch_names
to be treated as read-only.
Its more the development organization problem, but still.
 
-Nils Jakobson
SWH Technology
 

reply via email to

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