[p4] Trigger wildcards
Qazwart
qazwart at gmail.com
Thu May 10 17:55:22 PDT 2007
I looked at "p4 help undoc" at the "p4 spec" command, and it listed
all of the various formtypes:
branch, change, client, depot, group, job, label, spec, trigger,
typemap, user
The problem with the wildcard form business is that you are thinking
in terms of the forms and not the commands that you want to trigger
on. For example, you might want a trigger on a client to make sure
the user is prefixing the client name with their User ID, but would
this apply to any of the other form types?
Besides, some of these form types are for the administrator only
(depot, group, spec, typemap and user), and you normally wouldn't
attach a trigger to them.
On May 10, 2007, at 4:56 PM, Looney, James B wrote:
> Is there such a thing as a wildcard for triggers? At the moment, I'm
> experimenting with triggers, and there doesn't seem to be a list
> for the
> names of all the forms used within Perforce. So, I've done to make it
> work with branch is:
>
> formIn form-in branch "/home/jlooney/triggers.py <a bunch of the %
> variables>"
>
> What I'd like to do is:
>
> formIn form-in * "/home/jlooney/triggers.py <a bunch of the %
> variables>"
>
> just to see when my script gets fired off. And while I'm just
> experimenting and poking around, I'd like to avoid explicitly
> putting in
> a trigger line for each form I can think of, hoping that I've
> thought of
> all of them.
>
> Thanks,
> -JB
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
David Weintraub
david at weintraub.name
qazwart at gmail.com
More information about the perforce-user
mailing list