Re: [p4] Anyone have a way to preview p4 protect updates outside of the P4V admin tool?
Matt Janulewicz <[email protected]> Mon, 2 Apr 2018 10:45:01 -0700
| Newsgroups | gmane.comp.version-control.perforce |
|---|---|
| Message-ID | <[email protected]> |
Posted on behalf of forum user 'Matt Janulewicz'. This might be an incredibly insane idea. Or ingenious. Not sure yet. If you don't already have a spec depot, create one. Spec depots save the history of spec changes so you can refer back to them later (or undo things that turn out to be not so hot without having to remember what you just did.) The spec depot, importantly, includes the history of the protections table and any sub-tables. There's a new-ish feature in p4 where you can run 'p4 protects' on an older version of the protections table from the spec depot. So maybe such a tool could make changes in the protections table then immediately undo them. Then //spec/protects.p4s#<head-1> could be fed through 'p4 protects' to see what the results would be for a specific protections table change. It would clutter up //spec/protects.p4s quite a bit so maybe the tool could take the insanity one step further and create a sub-table of the depot in question (using the 'owner' permission) and use that for all the 'math', then an approved change could be applied to the main protections table (sub-tables using 'owner' permission are saved in //spec/protects/<depot/path>.p4s), then all your undos/redos would be in a sub-spec file and the real //spec/protects.p4s file/history would be clean. Just spitballin' but something crazy like that might get you where you want to go. Or it might crash and burn in spectacular fashion. Let us know! -- Please click here to see the post in its original format: http://forums.perforce.com/index.php?/topic/5674-anyone-have-a-way-to-preview-p4-protect-updates-outside-of-the-p4v-admin-tool _______________________________________________ perforce-user mailing list - [email protected] http://maillist.perforce.com/mailman/listinfo/perforce-user