Community
Participate
Working Groups
hasSameURI method determines if 2 EObjects have the same uri fragment, this means, they are located in the same place in an equally equivalent tree structure. This method doesn't seem to work well with CDOObject, because URI fragments contain an UUID called CDOID, so this method returns always false, and decreases the chances of 2 objects to be matched accordding to the heuristics at StatisticBasedSimilarityChecker. My proposal is to make this method protected so it can be overriden upon subclassing of StatisticBasedSimilarityChecker.
Guys, I was planning to provide a patch. I synced with CVS HEAD, but found that plugins are still versioned to 1.1.1.qualifier. Is this an error, or is it expected to be like that?
Created attachment 200083 [details] patch v1 - changed visibility of StatisticBasedSimilarityChecker.hasSameUri() from private to protected
Victor, The development of EMF Compare no longer take place on CVS, but on Git. You can find information about the repository on http://wiki.eclipse.org/EMF_Compare/Contributor_Guide#Checking_out_the_code . The git repository of EMF Compare is also replicated on github : https://github.com/eclipse/emf.compare
Argh, I patched too fast :P Don't know how to use Git, but will be a pleasure to learn how to :) (In reply to comment #3) > Victor, > > The development of EMF Compare no longer take place on CVS, but on Git. You can > find information about the repository on > http://wiki.eclipse.org/EMF_Compare/Contributor_Guide#Checking_out_the_code . > > The git repository of EMF Compare is also replicated on github : > https://github.com/eclipse/emf.compare
I think I can use the patches against CVS : the patch is small enough, and the code of this class hasn't changed so much that the patch cannot be applied. I'll come back to you if the patch cannot be applied on the current Git HEAD ;).
It's no problem, it is a good excuse to play with git! ;)
Thanks, this has now been pushed on master.