2 messages in com.perforce.perforce-user[p4] which labels?
FromSent OnAttachments
Mike Morris06 Oct 2000 10:49 
Diane Holt06 Oct 2000 13:16 
Subject:[p4] which labels?
From:Mike Morris (mik@perceptron.com)
Date:10/06/2000 10:49:49 AM
List:com.perforce.perforce-user

Hmm... Sounds like your thinking of "labels" as if it were an Avery label to be stuck on an item. In Perforce, actually, labels are more analogous to a container. Each label is a list of files each with a specific revision number. The list of files in a given label can be displayed with

p4 files @label_a

or restricting the listing to those files in a certain directory (or even to a specific file) with

p4 files //depot/Mydir/... at label_a or p4 files //depot/Mydir/myfile.c at label_a

If the requested file is not in the label specified the output will indicate this. Using the above with

p4 labels

a script can be written to check which labels contain the needed file.

Is there an easier way? I'm not sure, perhaps others can provide suggestions...

Mike M.

-----Original Message----- From: perforce-user-admin at perforce.com [mailto:perforce-user-admin at perforce.com]On Behalf Of Michael.Cook at cisco.com Sent: Friday, October 06, 2000 12:50 PM To: perforce-user at perforce.com Subject: [p4] which labels?

what's the recommended way to find out which labels have been applied to a given version of a file?

for example, say i have a file //depot/foo#42 and there are 500 labels in my depot. how do i find out which of those 500 labels are on //depot/foo#42?

m.