ryexley Posted October 22, 2012 Report Share Posted October 22, 2012 I'm having some trouble figuring out the right way to do this. I have some files that exist in a child branch that I'd like to merge back up to the parent branch...but *only* selected files...not *everything* that's changed from the child branch. Can someone please point me to some documentation somewhere that explains how this can be accomplished? I've tried right-clicking on the child branch in Branch Explorer, selecting "Merge from this branch", selecting just the files I want to merge, and right-clicking on those files, and there is a "Merge selected files" context menu option, but its grayed out. Not sure why or what I'm doing wrong. Just need to be able to merge a few files back up to a parent branch. Little help? Thanks. Link to comment Share on other sites More sharing options...
manu Posted October 23, 2012 Report Share Posted October 23, 2012 Hello ryexley, Plastic SCM 4 relies in the DAG architecture, so, when you are merging from a branch you need to process all the suggested elements. If you are not interested in the full branch content you can use the cherry pick operation with the changesets you are interested in, but you also need to include the full changeset, a subset of it is not allowed. The cherry pick option is inside the branch explorer changeset right click menu. Link to comment Share on other sites More sharing options...
ryexley Posted October 26, 2012 Author Report Share Posted October 26, 2012 So, what you're really trying to tell me is, there *is no way* to do what I am wanting to do....just merge selected files....from one branch to another...regardless of changeset. Am I understanding that correctly? Link to comment Share on other sites More sharing options...
manu Posted October 29, 2012 Report Share Posted October 29, 2012 You can't select a couple of files and merge them, you have to accept all the files that the merge operation offers you. If you are lucky and all the changes you want, and nothing more, are isolated in one changeset you can cherry pick it. Link to comment Share on other sites More sharing options...
PolishRenegade Posted July 30, 2014 Report Share Posted July 30, 2014 Is that limitation still present as of now? I've been getting into this situation more and more often as my artists are checkin-in tests alongside their work on test-branches. Do you have any advice on how to manage such situations? Thank you. Link to comment Share on other sites More sharing options...
JakubH Posted July 31, 2014 Report Share Posted July 31, 2014 At the first place, you should checkin related changes together only. I mean – you should keep your changesets small and cohesive, then you can benefit from the changeset-as-one-compact-change philosophy. However, there is a solution for you as you get into the situation when one changeset contains changes which you need to handle separately file by file. This is how you can do it: Make sure you are switched to the destination branch (on the last changeset). If you want to move all changes in those files – use Merge From the source branch. If you want to move only some changes in those files – use Cherry Pick(s) from the source branch. Uncheck all changes and check only those files you want to move. Shelve those files (see the small arrow next to the Checkin button). Check all changes, including those files. Undo all changes from the workspace (this discards the merge link too). Apply the shelve into the workspace. Checkin. Link to comment Share on other sites More sharing options...
Pete Posted October 21, 2014 Report Share Posted October 21, 2014 Changesets are atomic, you can't cherry pick individual files from them, because then the merge tracking would fall apart. We went from a non-atomic system (Clearcase) to Plastic and it took a while for people to grasp the concept. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.