We are migrating from clearcase
to perforce
and I have question on branching.
In clearcase
once I branch (say my_branch
) out I can keep committing incremental changes to a file (say xyz.cpp
) without being concerned about the main
.
element * CHECKEDOUT
element * .../my_branch/LATEST
element * /main/LATEST -mkbranch my_branch
I can keep checking out and checking in xyz.cpp
as many times as I want into my_branch
. Suppose I made 23 checkins and I feel the 21st checkin is the one that needs to go into the main
, I can get the 21st checkin using ct get
and merge it to main
.
I can do this for any number of files (say xyz2.cpp
, xyz3.cpp
...) in this branch in clearcase
. I am not sure how to do this in perforce
.
How do I replicate this process in perforce
? I see p4 submit
but it goes into main
. Basically I want to keep saving the incremental changes and also retrieve them as needed for any number of files before merging them to main
.
p4 integ -b my_branch
followed byp4 submit
. – randy-wandisco Nov 08 '12 at 01:31