At 06:01 AM 10/24/00, Paul Goffin wrote:
Hi,
I need to put together a trigger which
compares files in the submission
list with a set of arbitary perforce
path specs.
i.e.:
given a perforce path spec like:
//depot/.../test/.../*.doc
does the file:
//depot/project1/test/specs/report.doc
result in a match?
[Answer yes, obviously!]
Has anyone some perl they can share
that can answer these sorts of questions?
Or is there a Perforce command that
can answer them directly?
Create a special p4 client with that one mapping by generating
the client spec in your script and feeding it to 'p4 client -i',
then do 'p4 where <filespec>'.