[p4] How can I tell if a changelist was added to a label?
Chuck Karish
chuck.karish at gmail.com
Fri Oct 20 09:28:02 PDT 2006
If you use automatic labels the revision to which the label is
synced shows up in the label spec. Or so the documentation
says:
p4 help undoc
Looking at the label spec is much cheaper than the things
you have to do to find the latest file revision in an ordinary
label.
An automatic label is a snapshot of the depot at the given
changelist. It's not possible to labelsync individual files in
it to other revisions.
Chuck
On 10/17/06, Neil MacMullen <npm at csr.com> wrote:
> Weintraub, David wrote:
> > I would think there could be something like this:
> >
> > $ p4 files //...@><changeList>,@=<label>
> >
>
> I haven't tested it thoroughly but the following perl probably
> does roughly what you want...
>
>
> my ($change,$label) = @ARGV ;
> foreach my $file (`p4 files \@=$change`)
> {
> my ($f,$r) = $file=~/(.+)\#(\d+)/ ;
> my $lab = `p4 files $f@=$label`;
> my ($f2,$r2) = $lab=~/(.+)\#(\d+)/ ;
> print "ERROR - $f\#$r from $change didn't make it into $label
> (\#$r2)\n" if ($r > $r2);
> }
>
>
> Neil
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
Chuck Karish karish at well.com (415) 317-0182
More information about the perforce-user
mailing list