4 messages in com.perforce.perforce-user[p4] Are files in a pathspec
FromSent OnAttachments
Paul Goffin24 Oct 2000 06:01 
Rick Macdonald24 Oct 2000 06:46 
Chuck Karish24 Oct 2000 06:56 
Fredric25 Oct 2000 01:24 
Subject:[p4] Are files in a pathspec
From:Chuck Karish (kar@bea.com)
Date:10/24/2000 06:56:06 AM
List:com.perforce.perforce-user

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>'.