[p4] how to use labelsync to mimic specific CVS usage

Jeff A. Bowles jab at pobox.com
Sat Jun 9 07:50:48 PDT 2007


(polite cough)

There's a big assumption you're making, that
the files that are in the set of deltas have not
moved (i.e. been modified for other needs - I do
not mean "renamed" but "changed for other reasons
than the immediate need")
since the original labeled version.  If I
were automating such a label+delta alias/script,
I would explicitly check for //... at label versus
//... at now (or //...#head), looking for surprises.

If there are any such files, it's time to trot out
the branching tools.

Anyone who says "we'll just freeze the codeline
to avoid this" needs a bit more time reading up
on branching. With Perforce, "freeze the codeline"
is a four-letter word.

   -Jeff Bowles
   Perforce Consulting Partner


On 6/8/07, Robert McKenna <robertm at bioware.com> wrote:
> I think you can use tag to do the second step for a start which would
> make it a bit simpler.
>
> P4 tag -l MYLABEL //depot/xyz/... at SECOND_CHANGELIST#,SECOND_CHANGELIST#
>
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of William Deegan
> Sent: Friday, June 08, 2007 2:25 PM
> To: Perforce Users
> Subject: [p4] how to use labelsync to mimic specific CVS usage
>
>
> Greetings,
>
> I've just migrated some developers from CVS -> perforce.
>
> They used to use a sticky tag to mark code to be used by a specific
> client and/or another group of developers.
>
> What they want to do is to be able to label @CHANGELIST# + files changed
> in
> another later changelist, but not necessarily what is in the intervening
> ones.
>
> I sugguested the following:
> 1) p4 labelsync -l MYLABEL //depot/xyz/... at CHANGELIST#
> 2) p4 describe -s SECOND_CHANGELIST# | grep '\.\.\.' | p4 -x-
> labelsync -l MYLABEL -a
>
> Is there a better way to do this?
> I think what their trying to do is basically capture the state a
> client could be.
>
> Synced to CHANGELIST#, modified some files, submitted changelis_two.
>
> Thanks,
> Bill
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


-- 
---
Jeff Bowles - jab at piccoloeng.com


More information about the perforce-user mailing list