epeleg Posted December 6, 2011 Report Share Posted December 6, 2011 I had the following scenario: from /main create child branch /main/child now I missed the "switch to this branch" that I intended to do, and fixed a bug while still on /main and checked it in. So my problem was how to "migrate" this changeset into the /main/child branch. so at first I though - "o.k., I will merge from /main to /main/child and then remove the change set from /main and thats it" but it turns out that I could not remove the changeset from /main because of the merge link. I tried some other thing which all failed for similar reasons. eventually I just listed the changed files, made a copy of them "outside the system" deleted the changeset on /main , switched to /main/child and copied the files back into the workspace, checked in and merged and everything is o.k. now. Is there a shorter way I could have used ? like loading a changeset (state of a branch) from a different branch other then the active one ? or moving the changeset between the branches? I must say that am not even sure what the meaning of "moving a changeset" should be in the general case: suppose branch A has state0 -> CS1 ->state1 followed by CS2 leading to state2 and branch B has begins at some state9 -> CS10 -> state10 followed by CS11 leading to state11 If you want to move CS2 to be after CS11 this can be interpreted either "re-apply the same changes from a different starting point" or "get to the same state as after CS2 (i.e. create a CS12 that leads to a state12 which is equal to state2) ?! I believe that most developers think to the changeset as representing the states to which they lead. so the second interpretation is more suitable. anyway my scenario was simpler because both the place from which I wanted to move the CS from and the place I wanted to move it to are the same "parent" changeset and had nothing that depended on them. So maybe a solution for this specific scenario can be added (as I guess the pattern of create child but for get to switch to it would not be a rare one...) Eyal Link to comment Share on other sites More sharing options...
manu Posted December 7, 2011 Report Share Posted December 7, 2011 Hello epeleg, I can't say the number of times I found myself in the same situation! :S hehehehe This is a well known feature we have to implement!!!!!! Regards, Manu Link to comment Share on other sites More sharing options...
epeleg Posted December 12, 2011 Author Report Share Posted December 12, 2011 I will be looking forward for this one. Link to comment Share on other sites More sharing options...
Manxome Posted July 6, 2012 Report Share Posted July 6, 2012 Has this been done yet? Please say yes and tell me how Link to comment Share on other sites More sharing options...
manu Posted July 16, 2012 Report Share Posted July 16, 2012 Not yet, but if the idea is not at the user voice system yet please add it! Link to comment Share on other sites More sharing options...
cidico Posted July 16, 2012 Report Share Posted July 16, 2012 Right just now I did a few checkins in a branch that was not the task I was working... I selected the "Checkin the changes in another branches" and the check asking to switch workspace was checked... I kept working and after a few checkins I found myself working in the wrong branch... It would be nice to be able to move changesets to other branches... But I wonder how Plastic will handle things like the directory history and diffs.. Link to comment Share on other sites More sharing options...
manu Posted July 16, 2012 Report Share Posted July 16, 2012 hehehe funny. Don't worry about the differences and the history, not a big deal. Link to comment Share on other sites More sharing options...
diegohb Posted September 14, 2012 Report Share Posted September 14, 2012 It could also help a bit if the plugin for VS showed what branch you were on in the Commit Changes view. Link to comment Share on other sites More sharing options...
manu Posted September 17, 2012 Report Share Posted September 17, 2012 That's it a little bit bigger but doable. Can you please insert it in the user voice system? -> https://plasticscm.uservoice.com Link to comment Share on other sites More sharing options...
StevenTCramer@gmail.com Posted October 15, 2013 Report Share Posted October 15, 2013 I am out marketing to drum up some votes for this feature. Wouldn't it be cool (not to mention useful) to be able to look at your branch explorer and drag the changeset from the wrong branch to the correct one? Please vote for this feature. http://plasticscm.uservoice.com/forums/15467-general/suggestions/3742293-move-changesets-to-different-branch Currently there is shelf if you realize you are about to check in to wrong branch. There is also the ability to move the changes you are about to checkin to a different branch or even check them into a different branch. But this feature would allow you to move them after the commit. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.