5 messages in com.perforce.perforce-user[p4] Scripts and "p4 triggers"
FromSent OnAttachments
Joseph Fota08 Jun 2000 16:54 
Jeff A. Bowles08 Jun 2000 20:41 
Scott Blachowicz08 Jun 2000 21:05 
Diane Holt09 Jun 2000 12:35 
Fredric Fredricson10 Jun 2000 15:03 
Subject:[p4] Scripts and "p4 triggers"
From:Jeff A. Bowles (ja@pobox.com)
Date:06/08/2000 08:41:33 PM
List:com.perforce.perforce-user

At 4:55 PM -0700 6/8/00, Joseph Fota wrote:

Using "p4 triggers", I have a simple perl script that takes the changelist number, does a "p4 describe <changelist #>, and mails me the results. Unfortunately, all I get is just two line, no files. What am I doing wrong?

The changelist is *pending* at that point, so the output of "p4 describe" doesn't include the file list.

So you probably want to run "p4 -c clientname -u username opened" and look for the changelist number in the resulting output.

You'll find, in the "triggers" section of the public depot, that the examples use a trick like this to get their work done.

-Jeff Bowles