14 messages in com.perforce.perforce-user[p4] Commenting lines in a protection...
FromSent OnAttachments
Chuck Soper12 Sep 2002 11:41 
Ed Mack12 Sep 2002 11:56 
Jeremy Russell12 Sep 2002 12:10 
Ed Mack12 Sep 2002 12:26 
Chuck Soper12 Sep 2002 12:42 
Jeremy Russell12 Sep 2002 12:54 
Tyler, Tom12 Sep 2002 13:12 
Dave Foglesong12 Sep 2002 13:15 
Steve Smythe12 Sep 2002 13:33 
Chuck Soper12 Sep 2002 13:33 
Chuck Karish12 Sep 2002 21:04 
Robert O'Brien13 Sep 2002 01:12 
Robert Cowham13 Sep 2002 04:08 
Steve Smythe13 Sep 2002 09:56 
Subject:[p4] Commenting lines in a protection table?
From:Dave Foglesong (dfog@adobe.com)
Date:09/12/2002 01:15:50 PM
List:com.perforce.perforce-user

Add an //admin depot to the system that only the admins have access to. There, check in the on and off versions of the protect table you'll be using. Create scripts that do things like this:

p4 print -q //admin/protect_on.txt | p4 protect -i

Then the protect table files are accessable to all admins. Also, if you need to update the file, you submit the new version to the depot so you and the other admin don't get out of sync on the changes.

-----Original Message----- From: perforce-user-admin at perforce.com [mailto:perforce-user-admin at perforce.com]On Behalf Of Chuck Soper Sent: Thursday, September 12, 2002 12:43 PM To: Jeremy Russell; perforce-user at perforce.com Subject: Re: [p4] Commenting lines in a protection table?

Thanks. I have moved the lines from the protection table to a file on my computer. The only problem is that I want to give instructions to a co-administrator in North Carolina (I'm in San Francisco) how to turn back on the branch access but the file is on my hard disk. This makes things a little tricky. Perhaps, this could be a feature enhancement request? Chuck

On 9/12/02 12:10 PM, "Jeremy Russell" <jrussel at reshape.com> wrote:

Nope, no way to do this...Kind of stinks...

Pipe the output p4 protect into a file for safe keeping: p4 protect -o > protect.safe Then delete the lines you don't want via the normal command set: p4 protect After you am done with my actions that required the temporary change you can do: p4 protect -i < protect.safe

Be careful! Any changes to the intermediate protections table will be lost!

-----Original Message----- From: perforce-user-admin at perforce.com [mailto:perforce-user-admin at perforce.com] On Behalf Of Chuck Soper Sent: Thursday, September 12, 2002 11:42 AM To: perforce-user at perforce.com Subject: [p4] Commenting lines in a protection table?

Hello, Is there anyway to comment out lines in a protection table? I need to lock access to a branch and I want to keep the dozen or so lines that control access to the branch if I need to unlock the branch. Chuck