[p4] how can we lock the branch
karish at well.com
Tue Aug 6 20:57:49 PDT 2002
At 10:49 AM 8/6/2002 -0700, Andrew Nguyen wrote:
>Perforce grant users permission from "p4 protect". Is there a way to automate at certain time to "lock" the branch. For instants, we would like to lock out the codebase at 3:00am, so people cannot submit any job after that.
Several people have suggested 'p4 protect -o | sed <something or other> | p4 protect -i'.
This works fine, It's a bit of a chore to automatically unlock the line
in the morning, though.
I'd change that <something or other> to print the lines that give
write access to the the branch to a file. To unlock, run a script
that reads the protect settings and pastes that file back in.
Chuck Karish karish at well.com (415) 317-0182
More information about the perforce-user