[p4] Integ Across Multiple Branches

Jeff A. Bowles jab at pobox.com
Thu Apr 17 08:52:48 PDT 2008


Nope.  You'll end up with at least one "p4 integrate from/... at chg1,chg1
 dest/..."for each line that is modified.

The reason that you will end up with
     p4 integrate from/... at chg1,chg1  dest1/...
     p4 integrate from/... at chg1,chg1  dest2/...
......
     p4 submit -d "integration of chg1, from->dest1 and from->dest2"
Instead of of a single integrate-command, is that the only obvious
single-command strategy would be a branch-spec, and the "View" mechanisms in
branch / client specs really don't understand the notion of "from->dest1"
and "from->dest2" in the same View specification.  It's one-to-one (for the
files mapped), not one-to-many.

   -Jeff Bowles

ps: Aside: "For newer releases, from/... at chg1,chg1  and from/...@=chg1  mean
the same thing."




On Thu, Apr 17, 2008 at 5:32 AM, Todd Zarnes <todd.zarnes at activant.com>
wrote:

> Good point Robert, I should be passing the Changelist twice in the string
> to only integrate the changes on 35431.  Any suggestions on moving those
> same changes to multiple branches in one string?
>
> ToddZarnes | Activant Eclipse | SCM Manager | Tel: 303.938.8801 Ext: 1544
>
> ________________________________
>
> From: Robert Cowham [mailto:robert at vaccaperna.co.uk]
> Sent: Thu 4/17/2008 3:39 AM
> To: Todd Zarnes; perforce-user at perforce.com
> Subject: RE: [p4] Integ Across Multiple Branches
>
>
>
> > Is there a way to integrate a single Changelist across
> > several branches at once?  It seems like there was a thread
> > on this in the past but I could not find it.  I made a Submit
> > into main with Changelist 35431...build locally and unit
> > tests pass and now I want to propagate only my changes across
> > two branches (1.0 and 2.0).  I would like to accomplish this
> > without extra languages or utilities installed on each
> > developer PC if possible.  Calling a bat file from a Tool
> > menu that runs the P4 integ command would be perfect if I
> > could get the syntax correct.
> > Trying to go from one branch to another works fine so I tried
> > to add a second branch by just adding it to the same line and
> > I get the following error.
> >
> > C:\>p4 integrate -o //IntegrateTest/main/... at 35431
> > //IntegrateTest/1.0/... //IntegrateTest/2.0/...
> > Usage: integrate [ -c changelist# -d -D<flag> -f -h -i -o -n
> > -r -s from -t -v ] [ -b branch to... | from to ]
> > Missing/wrong number of arguments.
> >
>
> Just to note that there is a difference between:
>
> p4 integrate -o //IntegrateTest/main/... at 35431  //IntegrateTest/1.0/...
>
> Which takes everything up to the changelist.
>
> p4 integrate -o //IntegrateTest/main/... at 35431,35431
> //IntegrateTest/1.0/...
>
> Which takes the single changelist.
>
> Robert
>
>
> Notice: This transmission is for the sole use of the intended recipient(s)
> and may contain information that is confidential and/or privileged.  If you
> are not the intended recipient, please delete this transmission and any
> attachments and notify the sender by return email immediately.  Any
> unauthorized review, use, disclosure or distribution is prohibited.
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>



-- 
---
Jeff Bowles - jeff.a.bowles at gmail.com


More information about the perforce-user mailing list