6 messages in com.perforce.perforce-user[p4] Non-trivialy-mapped branching an...
FromSent OnAttachments
Oren Shemesh10 Sep 2002 04:44 
J. Bowles10 Sep 2002 06:30 
ste...@vance.com10 Sep 2002 11:56 
Oren Shemesh11 Sep 2002 05:10 
J. Bowles11 Sep 2002 05:44 
Jack Tan11 Sep 2002 11:07 
Subject:[p4] Non-trivialy-mapped branching and merging
From:J. Bowles (ja@piccoloeng.com)
Date:09/10/2002 06:30:15 AM
List:com.perforce.perforce-user

At 02:44 PM 9/10/2002 +0300, you wrote:

I thought about maintaining a long branchspec which would have a line for each file, mapping it from V1.0 to the proper place in V2.0. This will solve the problem, as this branchspec can be used many times with a single command. However, creating this branchspec seems like a manual, error-prone job.

I would probably use "p4 filelog -i" to create some information on the new tree ("filelog -i //depot/v2.0/...") and then use Perl/Python to break it into (from-filename, to-filename) information. Then I'd use a second Perl/Python script to massage that into a branch mapping.

(And if you're using the mainline model, which you might not at this point but could move to RIGHT NOW very nicely, you might consider that the "v2.0" is the new "main codeline" for that model. It's your choice whether to call the main codeline "main", which I would.)

-Jeff Bowles