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.

Bug 132258

Summary: File added shown incorrectly in history
Product: versioncontrol Reporter: Jesse Glick <jglick>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: sustaining
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot
main_work_76925_8b4760a4f7c2-showhistory-diff-add-del-copy.patch

Description Jesse Glick 2008-04-07 21:45:23 UTC
64a568d5a4df. Looked up history of ActiveConfigAction.java. Selected the file itself in the first revision where it was
added. Diff window showed the new file on the right, but diffs to another file on the left, which of course makes no sense.
Comment 1 Jesse Glick 2008-04-07 21:46:50 UTC
Created attachment 59798 [details]
Screenshot
Comment 2 John Rice 2008-04-09 15:55:45 UTC
Created attachment 59912 [details]
main_work_76925_8b4760a4f7c2-showhistory-diff-add-del-copy.patch
Comment 3 John Rice 2008-04-09 15:59:03 UTC
Changed show diff code to take account of revision status and do the right thing for added, deleted and copied files.

Modified: (Selected Rev -1): Selected Rev
Added:   -1: Selected Rev
Deleted: (Selected Rev -1): -1
Copied:  -1: Selected Rev

changeset:   77695:0803fbdc5168
tag:         tip
user:        jrice@netbeans.org
date:        Wed Apr 09 15:50:27 2008 +0100
summary:     #132258: File added Show History Diff incorrect, fixed to handle added, del and copied files correctly

Comment 4 rbalada 2008-06-03 16:23:52 UTC
Backported into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/4df49a9e7e72
Comment 5 Peter Pis 2008-06-04 13:31:36 UTC
Verified.
Comment 6 Peter Pis 2008-06-19 10:28:06 UTC
Verified with patch2.