p4v - How to disable/deactivate/archive branches in Perforce -


i have few applications on perforce , each application has few branches. right latest branch in actual use, old ones there backtracking , debugging purposes.

is there way can disable old branches no 1 can branch/use them?

removing permissions them best option. since want them remain accessible historical reference, not permit new changes, you'll want remove "write" level of permission leave "read" level:

write user * * -//depot/oldbranch/... read  user * *  //depot/oldbranch/... 

if groups have permissions these branches in first place you'd need careful of placement of lines make sure don't accidentally grant "read" permission other groups; might mean doing more like:

write group *   * -//depot/oldbranch/... read  group dev *  //depot/oldbranch/... 

or use "=write" syntax instead:

=write group * * -//depot/oldbranch/... 

you can use "=branch" prevent old branch being used source new branches (the "=branch" permission included "read" level unless explicitly exclude this):

=branch group * * -//depot/oldbranch/... 

for more on setting permissions: http://www.perforce.com/perforce/r15.1/manuals/p4sag/chapter.protections.html


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -