[p4] Submit-change file locking issue

Jeff A. Bowles jab at pobox.com
Fri Apr 18 16:14:11 PDT 2008


I think that I would ask Tech Support before using this strategy; the
behavior of the submit-process (the 'pipeline' of what it is doing) might
make assumptions that the file remains locked and that no one touches it
during-the-submit except the submit-code.
Separately, I sent a different suggestion to Shawn: if you're trying to stop
check-ins for a while on a particular codeline, read up on the "open"
permission....

What I wrote:

I would read up on "open" permission, which is half-way between "read" and
"write".

It is "permission to checkout/add/delete but not to 'submit' the operation.
You can 'diff', see the files on your pending changelists, and 'revert', but
not 'submit'." (Someone has to give you temporary 'write' permission to do
that 'submit'.)

For a released codeline or a problematic development line, it's a very good
first-line technique to reach for. Fast, easy, reliable, and
easy-to-explain.

Give people "open" permission on that codeline, but reserve "write"
permission for the people working on specific stabilization of the code
"right now."


   -Jeff


On Fri, Apr 18, 2008 at 2:39 PM, Evgeny <evgeny.zislis at gmail.com> wrote:

> Just add an unlock inside the trigger.
> The files are locked before the trigger is fired, so unlocking them
> inside the trigger will effectively disable the locking.
>
> On Fri, Apr 18, 2008 at 6:38 PM, Jamison, Shawn <sjamison at ciena.com>
> wrote:
> > Is there a way to prevent a submit-change trigger that fails from
> >  locking all the files in the change list?
> >
> >  I have a situation where this would be useful.
> >
> >  Thanks
> >  -Shawn Jamison>
> >  Ciena Corp.
> >  Perforce Admin
> >
> >  _______________________________________________
> >  perforce-user mailing list  -  perforce-user at perforce.com
> >  http://maillist.perforce.com/mailman/listinfo/perforce-user
> >
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>



-- 
---
Jeff Bowles - jeff.a.bowles at gmail.com


More information about the perforce-user mailing list