[p4] Re: Help with integration

steve at vance.com steve at vance.com
Wed Jun 2 10:20:03 PDT 2004

The client workspace you are performing the integration in must map back to 
the mainline.  The file in question must exist in the top level directory of 
the branch (i.e. directly in branch_directory) or not yet exist.  If this 
file was involved in a rename, you need to use the mainline name for the 
file and the branch revision for its correlate. 

Personally, I prefer to use the -s flag so that you're not combining the 
to-filename and the from-revision in one revision spec.  To do this you 
would use the command 

p4 integ -c 426 -b drop4 -r -s 'filename#2' 

where filename is the name of the branched file. 


data writes: 

> I am trying to do some basic integration between a
> branch and mainline.
> We are working on project that recently entered the QA
> phase (well, for the first stage anyway). I branched
> the code so that bugfixes for issues found during QA
> and normal development for outstanding items do not
> step on each other.  I am trying to integrate
> bug-fixes done in the QA branch back into mainline and
> seem to have problems with the basics. 
> the command I tried is
> cd branch_directory
> p4 integrate -c 426 -b drop4 -r 'filename#2' 
> (drop4 branch spec is what I used to do the branch) 
> It tells me "no such file". However, doing a 
> p4 filelog filename shows me the file and the revision
> and that it was branched. I tried leaving out the
> single quotes and the revision specifier and it still
> says "file not found".  
> I am probably missing something basic, but I could not
> figure out what from reading the manuals. I have not
> had to integrations before except for renaming files
> so  this is a bit new for me. 
> thanks,
> data64 
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/ 
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user

Stephen Vance

More information about the perforce-user mailing list