I have currently 3 codelines in my perforce depot
Main
Development
Release
The idea being changes will be integrated into Main from release and dev branches. But as of now some of the devs are making changes directly to Main branch. Is there a way to freeze check-ins for the “Main” codeline and allow integrations via branch mappings in perforce?
OR if there is any other best practice (restrictions) out there that can be applied to avoid direct check-ins into the Main branch.
Thx
As Adam said, you should use permissions to limit access to the Main branch. You can do this either by using the Admin tool, or by running
p4 protectfrom the command line (as long as you have super user access).You should limit the permissions for Main to read for most people, and allow write for those you trust to submit to the Main branch. You can also choose to give “normal” users open access instead of read, which will allow them to check files out, but not submit them.