burley1ASU Posted May 29, 2012 Report Share Posted May 29, 2012 We've been having some trouble merging our files using the built in Plastic merge tool. My colleague and I are editing the same file, she has already checked in, leaving me a revision behind. http://i.imgur.com/2J0yY.png I've got a change to the same file on a different line. http://i.imgur.com/7ghhU.png So I merge the files using these merge options. http://i.imgur.com/VBAxL.png And when I check the result my local changes have been lost. http://i.imgur.com/TR8Ed.png It seems to be a bug, and we are worried about this happening with more complicated files since it doesn't give us much indication that the changes have been lost, and the local changes are lost entirely. Do you have any idea what is happening? Link to comment Share on other sites More sharing options...
manu Posted May 30, 2012 Report Share Posted May 30, 2012 Hi burley, I think I'm missing something due to this is a very easy scenario. Can I connect with you to review it? We can even recreate the merge scenario and see if there's something wrong. The conflict was a "Both contributors conflict"? Link to comment Share on other sites More sharing options...
burley1ASU Posted May 30, 2012 Author Report Share Posted May 30, 2012 Yes, it was a both contributors conflict, and sure, I'd greatly appreciate the help to review it if you have the time. Link to comment Share on other sites More sharing options...
manu Posted May 31, 2012 Report Share Posted May 31, 2012 Sure, tell me your time zone and when are you available and we will arrange a meeting. Link to comment Share on other sites More sharing options...
burley1ASU Posted May 31, 2012 Author Report Share Posted May 31, 2012 I'm on Arizona time, I'm available around 9:30am-6:00pm. Link to comment Share on other sites More sharing options...
psantosl Posted June 1, 2012 Report Share Posted June 1, 2012 Please, share with us what happened here. Link to comment Share on other sites More sharing options...
JakubH Posted October 16, 2012 Report Share Posted October 16, 2012 I've just run into this too! (4.1.10.355) I lost my changes even though I had set Manual conflict resolution and specifically Merge your changes with the source contributor's changes. That is really bad, it would make Plastic unusable for us! It looks like merging with local changes doesn't work at all. :-( Link to comment Share on other sites More sharing options...
manu Posted October 16, 2012 Report Share Posted October 16, 2012 Hello JakubH, can you please give us details about your merge? We can even try to reproduce it. Link to comment Share on other sites More sharing options...
JakubH Posted October 16, 2012 Report Share Posted October 16, 2012 It is easy to reproduce: - make file test.txt with text abc - change it as one user to abx and check-in - change it as a second user to ybc and try to check-in → merge is needed I choose merging and click Process merge. But it says that all changes are already in destination and it overrides my local changes. I suppose the problem is that it takes an old changeset as a destination: Link to comment Share on other sites More sharing options...
manu Posted October 16, 2012 Report Share Posted October 16, 2012 JakubH, please, can you record a video or something similar? It's a very easy scenario, In that case the merge tool must appear since the same like has been changed from you current changeset and the one Plastic is mergering from. And of course, there is no data loss, in the worst of the cases there's a wrong merge result. I'll be happy to schedule with you an online meeting to review the issue. Link to comment Share on other sites More sharing options...
JakubH Posted October 16, 2012 Report Share Posted October 16, 2012 I've made a series of screenshots. And I've found out, that the wrong behavior occur only in case that I change just one (conflicting) line. This is the first changeset made by me: This is the second changeset (made by user autotools): Meantime, I change the test file: Checkin needs merge: There is one conflicting file: Check settings: I click to Process all merges. It has resolved automatically! My local change (abc to ybc) is gone: I do undo changes and try doing more changes: Merging is working now: I might have time for a gotomeeting tomorow, if it helps. Link to comment Share on other sites More sharing options...
JakubH Posted October 18, 2012 Report Share Posted October 18, 2012 Have you found the time to check it out? It is a really critical issue. Merging have to work the same way regardless it is a merge of branches or a merge of local changes with server ones. We need to trust the merge algorithm strongly. Link to comment Share on other sites More sharing options...
manu Posted October 18, 2012 Report Share Posted October 18, 2012 Yep, it's a thing regarding the communication between the merge tool and Plastic, if in you example instead of changing abc to ybc you change to ybcc the thing will work. You are totally right with the scenario and we are going to fix it today. Thank you so much for reporting. It's actually really really uncommon to see this issue with real data files. Link to comment Share on other sites More sharing options...
JakubH Posted October 18, 2012 Report Share Posted October 18, 2012 I see. I made this example to test it separately, but it happened to me in a non-artificial case. It looked somewhat like this: base:next version: 1.0.123 my change:next version: 2.0.123 build server's change:next version: 1.0.124 Result was:next version: 1.0.124 Instead of (manual merge):next version: 2.0.124 Link to comment Share on other sites More sharing options...
manu Posted October 18, 2012 Report Share Posted October 18, 2012 Yes, it's the same case. Don't worry it will be fixed today. Link to comment Share on other sites More sharing options...
JakubH Posted October 22, 2012 Report Share Posted October 22, 2012 It seems to me it has not been fixed in the new release (4.1.10.359) yet! Link to comment Share on other sites More sharing options...
manu Posted October 22, 2012 Report Share Posted October 22, 2012 In the next. I promise. (4.1.10.361) Link to comment Share on other sites More sharing options...
manu Posted October 23, 2012 Report Share Posted October 23, 2012 Done! Although it's not official here you have it! https://www.plasticscm.com/releases/PlasticSCM-4.1.10.361-windows-installer.exe Test the scenario, if you need a different installer just tell me. Link to comment Share on other sites More sharing options...
JakubH Posted October 23, 2012 Report Share Posted October 23, 2012 Thanks. It has been fixed... partially. When I try to checkin, it asked for a merge and then the merge is correct already. But, when I use the View new changes button in Pending changes view, it resolves it as an update only (it ignores my local changes). Btw, the issue tracker screenshot is quite interesting. I wonder what the user pain percentage is. Link to comment Share on other sites More sharing options...
manu Posted October 23, 2012 Report Share Posted October 23, 2012 Let me check that! EDIT: I can confirm it, it only happens if the file is changed and not checked out. We'll fix it. EDIT 2: An engineer is right now fixing it Link to comment Share on other sites More sharing options...
manu Posted October 30, 2012 Report Share Posted October 30, 2012 UPDATE: Solved! https://www.plasticscm.com/releases/PlasticSCM-4.1.10.363-windows-installer.exe Thanks for reporting JakubH! Link to comment Share on other sites More sharing options...
JakubH Posted October 31, 2012 Report Share Posted October 31, 2012 I've tested it and it is better now. A merge window is still claiming Changes only in source contributor and For 0 items, both source and destination contributors have changes. But when I click Process all merges (there is not an Update button only), a manual merge is invoked, which is correct. So messages are still wrong, but behavior is ok now. Btw, I suggest to omit a sentence User interaction might be required (manual merge), when there are 0 items with conflict. It is confusing! Link to comment Share on other sites More sharing options...
manu Posted October 31, 2012 Report Share Posted October 31, 2012 Yep! We will change the message in the future, it requires more time to adjust that part. But as you can the the wrong scenario is fixed Link to comment Share on other sites More sharing options...
JakubH Posted April 11, 2013 Report Share Posted April 11, 2013 I wonder when we can expect fixing the erroneous messages. Do you plan to fix it in the 4.2 release? It is happening here from time to time, and it is really confusing: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.