[p4] converting static labels to automatic labels
Stephen Vance
steve at vance.com
Fri Jul 20 07:14:58 PDT 2007
There are a couple of things to consider. Which ones you worry about
depends on your trust in the orderliness of your environment.
The easy part is
p4 changes -m 1 @label
which, as you note, answers the question "What is the highest changelist
number that contributes to the label?"
Next, if you create a workspace and
p4 sync -k @label
p4 sync -k -n @changelist
you will find out if the label purely represents the changelist *within
the constraints of your views*.
However, both your workspace view and your label view can potentially
split changelists. If you open up those views to include your entire
repository, you could use a combination of 'p4 sync -k -n @changelist'
and 'p4 labelsync -n -l label @changelist' to easily determine if it was
truly pure. If you need to keep the views restrictive then it's a more
computational task to determine.
Steve
Jay Glanville wrote:
> Hello all.
>
> I'm wanting to convert some of the old static labels we have (many
> containing over 60k files) into automatic ones, in the hopes that it
> will make label diffs more efficient. The conversion process itself
> isn't that hard.
>
> The hard bit is trying to determine if an automatic label can represent
> a static label. The only way I can think of right now is to find the
> highest change list in the label, and then perform a diff between the
> label and the change list. But, is that the best way? Is there a
> simpler way (that just hasn't occurred to me yet...).
>
>
> So, my question to these eminent minds is this: what is the best way to
> determine if a static label can represented by an automatic label?
>
>
> Thanks
>
> JDG
>
> ---
> Jay Dickon Glanville
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
>
--
Stephen Vance
www.vance.com
More information about the perforce-user
mailing list