This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Automated Merge Diff not displaying correctly | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | John Rice <jrice> |
Component: | Mercurial | Assignee: | issues@versioncontrol <issues> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sustaining |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | main_work_80047_3b13fc76f535-diff-common-ancestor.patch |
Description
John Rice
2008-05-09 14:50:07 UTC
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 immediate ancestors. 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. changeset: 80224:88c624a8b5d3 tag: tip user: jrice@netbeans.org date: Fri May 16 12:31:10 2008 +0100 summary: #134775: Automated merge diff problem - need to diff common ancestor Created attachment 61479 [details]
main_work_80047_3b13fc76f535-diff-common-ancestor.patch
Integrated into 'main-golden', available in NB_Trunk_Production #206 build Changeset: http://hg.netbeans.org/main/rev/88c624a8b5d3 User: jrice@netbeans.org 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. Verified with patch2. |