[p4] How can I tell if a changelist was added to a label?

Jeff Grills jgrills at drivensnow.org
Mon Oct 16 15:20:53 PDT 2006


 
Yes, you're correct.  Notice that I said "changes that contribute to a
label" and not "changes that are in a label".  Many sites do operations on
changelists and can reasonably assume that changelists move around as atomic
entities.  Still, your point is valid and I should have taken the time to
explain that limitation in my original reply.

j

-----Original Message-----
From: Melissa Kacher [mailto:mkacher at intrinsyc.com] 
Sent: Monday, October 16, 2006 4:24 PM
To: Jeff Grills; darrylw at hb-studios.com; Perforce Users
Subject: RE: [p4] How can I tell if a changelist was added to a label?


>	p4 changes //... at LABEL

That statement is incredibly useful, but I think you need to be careful with
it, and keep in mind its limitations.

Wouldn't it return a change number, even if only half of than change list
was in the label?


Thanks,
Melissa


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Jeff Grills
Sent: Monday, October 16, 2006 10:05 AM
To: darrylw at hb-studios.com; 'Perforce Users'
Subject: Re: [p4] How can I tell if a changelist was added to a label?


I think this might work for your needs - you'll see all the changes that
contribute to a label:

	p4 changes //... at LABEL

If you want to consider only the changes that contributed the exact
revisions of the files in the label (instead of all revisions up to the head
for each file), you can use this command:

	p4 changes //... at LABEL,LABEL

If you add "-m 1" to either command, p4 will report only the highest change
number, which might suit your needs.

j



More information about the perforce-user mailing list