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 241012 - "Diff to Previous" seems backwards
Summary: "Diff to Previous" seems backwards
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: History (show other bugs)
Version: 8.0
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-27 14:22 UTC by todddukart
Modified: 2014-02-03 14:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot 1, showing r50642 selected. (120.95 KB, image/png)
2014-01-27 14:22 UTC, todddukart
Details
Screenshot 2, showing 50640 selected. (102.99 KB, image/png)
2014-01-27 14:22 UTC, todddukart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description todddukart 2014-01-27 14:22:12 UTC
Created attachment 144412 [details]
Screenshot 1, showing r50642 selected.

When looking at the History view of a file that's under Subversion version control, the Diff to Previous option seems to try to compare the selected version to the next newest version, rather than the next oldest.

For example, selecting the latest revision (50642 in Screenshot 1), it says there's no previous version to compare to. But when I select the second-newest revision (50640 in Screenshot 2), it shows the diff I had expected before -- 50642 in the left pane, 50640 in the right pane.

The sort order of the history entries doesn't seem to help.

This looks a lot like bug 212865, which was resolved as fixed, but in my opinion what I expect for Diff to Previous isn't what I get.

--

Product Version: NetBeans IDE 8.0 Beta (Build 201401141042)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.9.1 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/tdukart/Library/Application Support/NetBeans/8.0beta
Cache directory: /Users/tdukart/Library/Caches/NetBeans/8.0beta
Comment 1 todddukart 2014-01-27 14:22:48 UTC
Created attachment 144413 [details]
Screenshot 2, showing 50640 selected.
Comment 2 Ondrej Vrabec 2014-01-28 13:51:07 UTC
Affects only subversion, possibly a problem with HistoryRootNode.getPreviousEntry, nodes seem to be in a reverse order now (from the oldest to the youngest).
Comment 3 Tomas Stupka 2014-01-29 13:14:44 UTC
affects all vcs
Comment 4 Tomas Stupka 2014-01-31 09:59:40 UTC
fixed in core-main #55a938715249
Comment 5 Quality Engineering 2014-02-02 02:17:47 UTC
Integrated into 'main-silver', will be available in build *201402020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/55a938715249
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #241012 - "Diff to Previous" seems backwards
Comment 6 todddukart 2014-02-03 14:22:17 UTC
The nightly build works for me. Thanks!