Community
Participate
Working Groups
When trying to view history on locked files (no matter if file is not locked in a branch) cvs history view is not show the actual history for that locked file and there are an exception in .log file. This is for Eclipse 3.0 200308281813 !ENTRY org.eclipse.ui 4 4 Oct 08, 2003 09:59:46.220 !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 Oct 08, 2003 09:59:46.220 !MESSAGE 5 locked by: falkgeof; !STACK 0 java.lang.NumberFormatException: 5 locked by: falkgeof; at java.lang.Integer.parseInt(Integer.java:418) at java.lang.Integer.<init>(Integer.java:544) at org.eclipse.team.internal.ccvs.ui.VersionCollator.getIntSegments (VersionCollator.java:55) at org.eclipse.team.internal.ccvs.ui.VersionCollator.compare (VersionCollator.java:27) at org.eclipse.team.internal.ccvs.ui.HistoryTableProvider$HistorySorter.compareColu mnValue(HistoryTableProvider.java:185) at org.eclipse.team.internal.ccvs.ui.HistoryTableProvider$HistorySorter.compare (HistoryTableProvider.java:170) at org.eclipse.jface.viewers.ViewerSorter$1.compare (ViewerSorter.java:169) at java.util.Arrays.mergeSort(Arrays.java:1176) at java.util.Arrays.mergeSort(Arrays.java:1183) at java.util.Arrays.sort(Arrays.java:1123) at org.eclipse.jface.viewers.ViewerSorter.sort(ViewerSorter.java:167) at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren (StructuredViewer.java:557) at org.eclipse.jface.viewers.TableViewer.internalRefresh (TableViewer.java:447) at org.eclipse.jface.viewers.TableViewer.internalRefresh (TableViewer.java:431) at org.eclipse.jface.viewers.StructuredViewer$7.run (StructuredViewer.java:856) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java:796) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:854) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:816) at org.eclipse.jface.viewers.TableViewer.inputChanged (TableViewer.java:398) at org.eclipse.jface.viewers.ContentViewer.setInput (ContentViewer.java:238) at org.eclipse.jface.viewers.StructuredViewer.setInput (StructuredViewer.java:983) at org.eclipse.team.internal.ccvs.ui.HistoryView.showHistory (HistoryView.java:577) at org.eclipse.team.internal.ccvs.ui.actions.ShowHistoryAction$1.run (ShowHistoryAction.java:68) at org.eclipse.team.internal.ccvs.ui.repo.RepositoryManager.run (RepositoryManager.java:802) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$1.run (CVSAction.java:241) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$2.run (CVSAction.java:250) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction.run (CVSAction.java:247) at org.eclipse.team.internal.ccvs.ui.actions.ShowHistoryAction.execute (ShowHistoryAction.java:63) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction.run (CVSAction.java:68) at org.eclipse.ui.actions.ActionDelegate.runWithEvent (ActionDelegate.java:71) at org.eclipse.ui.internal.PluginAction.runWithEvent (PluginAction.java:253) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:529) at org.eclipse.jface.action.ActionContributionItem.access$4 (ActionContributionItem.java:482) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent (ActionContributionItem.java:454) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2188) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1878) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2036) at org.eclipse.ui.internal.Workbench.run(Workbench.java:2019) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:295) at org.eclipse.core.launcher.Main.run(Main.java:751) at org.eclipse.core.launcher.Main.main(Main.java:587)
Post 3.0
Any chance to get this feature implemented in 3.1 release?
Can you provide a patch?
Unfortuantely I can't. Sorry.
There is currently no plan to address this item.
*** Bug 98057 has been marked as a duplicate of this bug. ***
Reopening
*** This bug has been marked as a duplicate of 103374 ***
Created attachment 175034 [details] Patch to fix synchronization of locked revision I found that this bug is critical for our company. Please review my patch. That is easy to reproduce bug. You need just lock revision with cvs admin -lbranch file and try to compare locked revision with another revision.
Created attachment 175035 [details] Use different name for incoming value See my description about patch in previous comment. Second patch replace first one
Oh I discovered that this bug marked as FIXED. But it was not fixed 100%. setRevision() function was missed in the fix. I was able to reproduce it with eclipse 3.6. Should I create new bug?
I went ahead and created new bug 320686 with the same patch attached