Cloned OpenJDK as described on the MercurialNetBeans wiki JavaOne2008 BOF slides, speaker notes.
Had Source Swing project and Clone Swing project:
S-Swing: changed L&F in SampleTree.java, commit
C-Swing: added Help Menu in SampleTree.java, commit
On C-Swing did Fetch from S-Swing to C-Swing (pull-merge-auto commit)
On C-Swing did Show Out and got two csets listed as expected, one for Help Menu change and one for automated merge for
Looked at diffs and get the same Help menu diff for both csets.
On C-Swing do View and can see the correct csets and correct diffs here. So something is gong wrong in the Show Out -
The diff is working correctly, it diffs the current rev (automated merge) against the child rev and this has the menu diff.
What we see in hgk is that the diff is smart enough to figure out the current rev (automated merge) is the result of a
merge and so diffs the common ancestor of the two files that were used to create the automated merge, not one of the
For a given rev we could see if it has multiple parents:
$ hg parents
If it does then we could use:
$ hg debugancestor <revP1> <revP2> to get the common ancestor
Then we would diff the current selected rev against the common ancestor.
This will add a performance hit when you want to do a diff in the Show command window, so may want to have this as an
option along lines of, "diff against common ancestor"
Can pick up parent info when the Search is performed and then when doing diff use this info to see if there are 2
parents. If there this must be a merge changeset so we then take the hit to check for the common ancestor.
date: Fri May 16 12:31:10 2008 +0100
summary: #134775: Automated merge diff problem - need to diff common ancestor
Created attachment 61479 [details]
Integrated into 'main-golden', available in NB_Trunk_Production #206 build
Log: #134775: Automated merge diff problem - need to diff common ancestor
Backported into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/095bdc9a925f
Verified with patch2.