srs Posted August 14, 2016 Report Share Posted August 14, 2016 Hi. We are syncing a Plastic repo with a BitBucket repo. In BitBucket, user1 merged a changeset from branch A into the main branch, and then committed 4 more changesets into main. User2 then created a new changeset in BItBucket on branch A, using the latest changeset on main as the parent. At least, that is how it appears to have synced across, as you can see from the attached image (the topmost branch is branch A, and the bottom one is main). This has left multiple heads in branch A, and I can't figure out how to merge it in Plastic so that I can sync new changesets I have back to git. Can anyone give me any suggestions? Thanks. Stephen Link to comment Share on other sites More sharing options...
manu Posted August 18, 2016 Report Share Posted August 18, 2016 Hi Stephen, in order to solve a multiple heads scenario you just need to switch your workspace to the last branch changeset and then merge from the sub-head. That should be enough to allow you to resync. Link to comment Share on other sites More sharing options...
DBL Posted October 28, 2020 Report Share Posted October 28, 2020 How do you detect multiple heads before syncing? Anyone have a script for that? Dave Link to comment Share on other sites More sharing options...
calbzam Posted October 28, 2020 Report Share Posted October 28, 2020 Hi, If you are using a recent Plastic version, and the branch has multiple heads, the error message now should let you know the specific changeset id to be merged. [New] 7.0.16.2688 A branch with multiple heads cannot be pushed. Previously, the error message did not give any useful information. Now, it specifies the heads that need to be merged, so you can unify the heads and push the branch without error. Regards, Carlos. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now