14 messages in com.perforce.perforce-user[p4] Commenting lines in a protection...| From | Sent On | Attachments |
|---|---|---|
| Chuck Soper | 12 Sep 2002 11:41 | |
| Ed Mack | 12 Sep 2002 11:56 | |
| Jeremy Russell | 12 Sep 2002 12:10 | |
| Ed Mack | 12 Sep 2002 12:26 | |
| Chuck Soper | 12 Sep 2002 12:42 | |
| Jeremy Russell | 12 Sep 2002 12:54 | |
| Tyler, Tom | 12 Sep 2002 13:12 | |
| Dave Foglesong | 12 Sep 2002 13:15 | |
| Steve Smythe | 12 Sep 2002 13:33 | |
| Chuck Soper | 12 Sep 2002 13:33 | |
| Chuck Karish | 12 Sep 2002 21:04 | |
| Robert O'Brien | 13 Sep 2002 01:12 | |
| Robert Cowham | 13 Sep 2002 04:08 | |
| Steve Smythe | 13 Sep 2002 09:56 |
| Subject: | [p4] Commenting lines in a protection table?![]() |
|---|---|
| From: | Tyler, Tom (Tom....@Monster.com) |
| Date: | 09/12/2002 01:12:37 PM |
| List: | com.perforce.perforce-user |
Hello!
This is a bit orthogonal to the initial question, but since the answer to that is "NO, you can't put comments in the protections file", there is another way to achieve similar benefits. We just store the protections file as a versioned file in a directory reserved for that purpose. That way you get change tracking history, rollback capability, etc. All the usual benefits of using an SCM tool apply to most of the Perforce control files (protect, typemap, triggers, group specs, etc.). Then you can put useful info in the changelist descriptions, e.g. "Code Freeze -- //depot/Main/ProjA."
Some sites take it to the next level, using a "push" model, so that submits of new versions of the control files cause them to become live. For example, checking in "//depot/admin/config/protect" could be made to cause that version to be uploaded to perforce via a 'p4 protect -i < client_path_to_protect_file' or something like that.
The push model is a nice extra, but I would require at a minimum that the control files be versioned if I were, say, doing a CM audit of a Perforce installation. Otherwise some bonehead might slip and do a 'p4 protect -i < some_empty_file' and there goes your data! Sure, you could get it back from a backup or from the last checkpoint, but that's A LOT slower than just resyncing and running 'p4 sync' again.
I hope this helps!
Tom
-----Original Message----- From: Chuck Soper [mailto:chuck.soper at sas.com] Sent: Thursday, September 12, 2002 3: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!
-----------*----------------*---------- Jeremy Russell Buildmeister ReShape,Inc. jrussel at reshape.com W: 650.230.3202 F: 650.230.3220
-----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
_______________________________________________ perforce-user mailing list - perforce-user at perforce.com http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________ perforce-user mailing list - perforce-user at perforce.com http://maillist.perforce.com/mailman/listinfo/perforce-user




