[p4] Tracking Label Contents
David Weintraub
qazwart at gmail.com
Thu Jun 14 12:07:01 PDT 2007
I think your best bet is to use the new "Revision:" field in a label
and use the spec depot.
Create a label called "CURRENT" and set the Revision field to the
changelist of the current build. This could even be scripted when a
build is "approved" as good.
The advantage is that labeling a changelist with the CURRENT label is
practically a zero time effort. Simply editing the changelist will
move the label. This way, users can use the "CURRENT" label to pull up
the most recent build.
At the same time, the spec depot will log any change to the label, so
you can easily find the previous good changelists by looking at the
label's history.
The only problem is that you can't tweak a label when you use the
"Revision" field. You can't say "Use changelist 13301 for all files
except //depot/MAIN/foo/bar.txt which should be revision 4".
On 6/14/07, Ivey, William <william_ivey at bmc.com> wrote:
> If were that worried about being able to restore the label's
> previous state, I think I'd probably opt for a branch instead.
> I can see why a label might be attractive, though since it
> keeps everything in one line.
>
> If the labeling were done by some automatic process, I'd
> probably have one or more labels defined just to track the
> previous state(s) of the main label. That would fall apart
> if you had to depend on a manual operation, though.
>
> -Wm
>
>
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Jamison, Shawn
> Sent: Wednesday, June 13, 2007 4:23 PM
> To: Paul Goffin
> Cc: perforce-user at perforce.com
> Subject: Re: [p4] Tracking Label Contents
>
> I guess I'm naive but why track the contents of a label?
>
> I just can't envision a usage model that would require this.
>
> -Shawn J>
> Perforce Admin
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
--
David Weintraub
qazwart at gmail.com
More information about the perforce-user
mailing list