[p4] How to protect new branch?

Robert Cowham robert at vaccaperna.co.uk
Mon Dec 11 04:42:37 PST 2006


Don't forget that an exclude line removes all access to the files, doesn't
matter what protect level you give it.

http://www.perforce.com/perforce/doc.061/manuals/p4sag/04_protect.html#10469
72 

Thus exclude for write and exclude for list give same result - no access.

You could then add a second line to give back particular permissions.

Robert

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of 
> David Weintraub
> Sent: 10 December 2006 00:45
> To: William Deegan
> Cc: Perforce Users
> Subject: Re: [p4] How to protect new branch?
> 
> There's really nothing to it...
> 
> write       user       *           *   -//Depot/Project/BRANCH/...
> 
> This will prevent anyone from writing to the branch any new changes.
> You could also do this:
> 
> write group group-a * //Depot/Project/MAIN/...
> 
> And that will only allow people in group-a access to the MAIN branch.
> Then you could put in a separate protection line for people 
> who you want to have a branch:
> 
> write group group-a * //Depot/Project/MAIN/...
> write group group-b * //Depot/Project/BRANCH/...
> 
> On 12/9/06, William Deegan <bdbaddog at gmail.com> wrote:
> > Greetings,
> >
> > Can someone tell me exactly what lines to add to my p4 protect to 
> > protect a branch from submit's?
> >
> > Thanks,
> > Bill


More information about the perforce-user mailing list