7 messages in com.perforce.perforce-user[p4] Question about locking branches
FromSent OnAttachments
Marion, Patrick05 Oct 2004 15:09 
Dave Lewis05 Oct 2004 15:52 
Marion, Patrick05 Oct 2004 16:16 
Tony Sweeney05 Oct 2004 16:37 
Marion, Patrick05 Oct 2004 16:59 
Grills, Jeff05 Oct 2004 17:43 
jab05 Oct 2004 19:03 
Subject:[p4] Question about locking branches
From:Marion, Patrick (patr@certive.com)
Date:10/05/2004 03:09:50 PM
List:com.perforce.perforce-user

Situation:

we have a main branch and a child branch off main.

I just merged the child branch up to main. I want to lock the child branch so I have the following lines in "p4 protect" in that order:

write group dev * //depot/<product1>/... write group dev * //depot/<product2>/... write group dev * -//depot/.../child/...

Now someone wants to change some of the merged file in main, and submit the changes. No can do! "cannot lock file..." message! If someone edit and submit a file in main that was not part of the merge: no problem!

So my stopgap solution was to open up the child branch again (removing the "write group dev * -//depot/.../child/..." line from "p4 protect") which allows developers to edit and submit files that were merged from the child branch.

This doesn't seem to be the right behavior. What is it I am doing wrong?

Thanks for the help.

P