[p4] best way to prevent branching?

Jay Glanville Jay.Glanville at naturalconvergence.com
Fri Jun 9 11:41:25 PDT 2006


Hello all.

What's the best way to prevent users from creating branches in the wrong
area?

Now for the specifics ... we have a branching structure that looks like
this:
  //depot/[product]/branches/[branch_name]/...
We also have a sandbox area for each product in which the developers can
create what I call "developer branches", one where developers are
encouraged to make branches for their own purposes, something like this:
  //depot/[product]/branches/developers/[branch_name]/...

What we would like to do is make it so that only user X and Y can create
branches under the product's branches, but anyone can make branches
under the sandbox location.  (Basically, X and Y are the release
managers.)

The reason for this need is because developers have mistakenly created
branches in the wrong location, causing problems.

What is the best way to setup such a rule structure?  I can't see how to
do it in the protections table.  Is a trigger the only way to go?

Thanks

JDG

---
Jay Dickon Glanville



More information about the perforce-user mailing list