I have get this issue: There are two branches, both have been changed and not been submit.Named Project-A and Project-B; Now, I want to merge/integrate A to B. I have some ideas to do this.
Build a new branch and merge the older two.
Use changelist to integrate since Perforce use changelist(submit | shelve) for managing.
Use diff & patch
I am a nieb of Perforce, so there will be some mistakes of the description. The three ideas haven't tested yet because I am afraid to break the branches of my team.
So, my problem is : Will one of the three solutions work? & Which one will be the best?
Thanks very much.
Cheers.
With the 2013.1 version of the Perforce server, you can unshelve through a branch spec, so the process for doing this is:
The Server will schedule integrations and merges of the shelved content from step (1) against the opened files in the project B workspace.
After resolving the integration merges, you can diff all the changes and either proceed with them or make further changes.
The reason for shelving the changes for project B in step (2) is so that if you don't like the results of the integration and merge, you can revert everything and re-start the process from the shelved work.