[p4] A trigger change-submit deadlock

Dave Lewis dlewis78731 at gmail.com
Fri Sep 7 12:00:18 PDT 2007


I believe you can edit the changelist with p4 change, I forgot the args though.

dave

On 9/7/07, Rex Tener <rex_tener at yahoo.com> wrote:
> I am trying to write a trigger that validates that a "reviewed by
> xxxx" string is contained in a submit description.  I have it trigger
> on a change-submit.  It works fine with p4v.  However, with the p4
> command line this creates a deadlock if the string is not
> present.  The steps are:
>
>      1.  Submit without the required string
>      2.  The submit errors correctly
>      3.  The perforce server moves the default changelist to a
> numbered changelist
>      4.  It displays "Use 'p4 submit -c XXXXXX' to submit file(s) in
> pending change XXXXXX"
>
> However, now I am in a deadlock when trying to resubmit using "p4
> submit -c XXXXX" as the comment does not contain the string and it
> goes through the above four steps again.  How do I get it to show the
> submit form to the user?
>
>      A.  Do I have to delete their comment?  (that is going to fly
> like a lead balloon)
>      B.  Move their files back to the default changelist?
>      C.  I missing something that is trivial because everyone
> validates changelist description
>          and file contents and it can't be this hard.  :-)
>
> Even looking at the Perforce job number validation example on page
> 102 in the 2007.2 systems administrator's guide looks like it would deadlock.
>
> Thanks,
>
> Rex Tener
> rex_tener at yahoo.com
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


More information about the perforce-user mailing list