PlasticSCM – Working with branches with a second developer on same task

You are working alone up to now, but at this point you need help to delegate some work on a second developer in the same task, what to do?.... Easy!

First you create your new work branch, now you can’t keep modifying the master task branch anymore because a second developer is in and you wan’t having conflicts with both modifications. You must think on a branch as a personal directory that one and only one developer can modify directly. Always that 2 or more developers need to modify one branch, they do that using sub-branches of the task, and updating the main task only with merges, never directly.

So let’s create your dev-1 work branch, modify form1 and add 2 new controls (lbl_LastName and txt_LastName) , save the form, generate the text files for pending changes and checkin the 3 files combo (scx/sct/sc2):


While your where doing this, dev-2 came in, created his dev-2 work branch, modified form1 and added 2 new controls (lbl_Sex and txt_Sex):


So the Branch Explorer show this with both modifications, each one on a different sub-branch:


Now we need to merge both changes, and this is the best part: The first developer that merges their changes, get an automatic merge, and second developer that merge, almost surely must resolve the conflicts, so you commit first :-)

Switch to task_001 so the home icon shows there:


And now you can merge, process all merges (automatic) and commit:


And now dev-2 does the same, and process the merges, but he must resolve 3 conflicts in this case (look at the “Non automatic. User intervention needed” message on the upper-left and the “Pending non-automatic: 3/3” counter on the upper-middle). As you can see, both changes must be implemented:


So dev-2 click on top button “Mark as resolved” and find the second conflict, on which both controls code is shown. As earlier, we use the same solution and “Mark as resolved” because we need both codes:


The last conflict, in this case, is an easy one to resolve, like earlier, so same resolution:


As you can see, the counter shows 0 conflicts now, so we can click “Save & Exit”, and this finishes the text merge, but we have left the binaries. What we do with them?


That’s the easy part: we have merged the only files that can be merged, the text files that represent those binaries, so in this case the binaries must have left untouched because we are going to regenerate them in the Pending Changes view!

Now let’s bypass those binaries:


And Process all merges:


Now on Pending Changes view, as we have done a merge, we need to regenerate the binaries from the merged text versions:


Before checking in, let’s verify the resulting binary that we have regenerated:


Yeah, that’s right :-) All changes are there, so checkin now and see the Branch Explorer view:


Now we can merge the task_001 into the release (switch workspace to the release branch and merge), then merge the release into main branch and label it as “v2_0”:


And that’s it! We have 2 devs that have made concurrent modifications on the same form with success, and taking the task to production.



Index of contents:

Using FoxBin2Prg with PlasticSCM
PlasticSCM - Download and configuration
PlasticSCM – Adding an existing VFP project
PlasticSCM – Working with branch per task
PlasticSCM – Working with branches with a second developer on same task
PlasticSCM - Desintegrate a task from the release
PlasticSCM - Synchronizing with a Git Repository
PlasticSCM – What’s next

Last edited Sep 18, 2014 at 7:08 PM by fdbozzo, version 9


No comments yet.