Sean, Our result is more or less the same as yours. We do this all the time. The diff does work, but it seems to get confused when people are making changes close to each other. FWIW, it seems to have problems with whitespace and attribute values. Not a very scientific result, I grant you, but that has been my experience.
Our solution (obviously wouldn't work for everybody) is just to partition the XML into multiple files, each of which will hopefully be worked on mostly by one person at a time. Our configuration manager reads in all similarly-named XML files in parallel, so if you put everything into one file or split it into 100 it doesn't really matter. I even encourage people working on their own part of the system for awhile to create a temporary 'jimsmith.page_registry.xml' file to reduce merge conflicts. Works for us. Since we have done this, it has cut way back on merge conflicts and the corresponding system errors. BTW, I found this a useful technique using locking CM systems like PVCS too. Replace "merge conflict" with "locked files". <>< gary -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sean Hager Sent: Friday, April 26, 2002 9:17 AM To: 'CVS-II Discussion Mailing List' Subject: RE: merge mode for XML > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Greg A. Woods > Sent: Thursday, April 25, 2002 8:24 PM > To: [EMAIL PROTECTED] > Cc: CVS-II Discussion Mailing List > Subject: Re: merge mode for XML > > > [ On Thursday, April 25, 2002 at 16:10:37 (-0500), Sean Hager wrote: ] > > Subject: merge mode for XML > > > > Is there a merge mode or merge algorithm that works well > for XML files? > > Doesn't diff3 work well enough? > > XML files are more or less just text, right? > > If the tags are all on separate lines, then regardless of whether > content is changed, or tags are changed, diff3 will do the > right thing. > > -- > > Greg A. Woods I did test the merge with xml files and it worked fine as long as we made edits more then 5 to 10 lines appart from each other. When we made edits that were only 1 or 2 lines appart we got conflicts which I felt the merge should have been able to solve. I am not a CVS expert, but I was thinking that perhaps the tags diff3 was looking for were different for xml. I am going to test it some more, prehaps I will have to look into the source code, but I was hoping someone on the list had some experience with this. sean. _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
