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 12315 - [VSS] misplaced information in revision explorer
Summary: [VSS] misplaced information in revision explorer
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
: 12499 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-05-21 16:01 UTC by carcassi
Modified: 2003-07-01 13:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carcassi 2001-05-21 16:01:51 UTC
I am using revision explorer on a file that has been added to a project after 
the project has been labelled. The file has been created and modified once.

When I open the revision explorer I get this exception:

Mon May 21 16:53:57 CEST 2001: java.lang.StringIndexOutOfBoundsException: 
String index out of range: -2
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
        at java.lang.String.substring(String.java:1525)
        at java.lang.String.substring(String.java:1492)
        at vcs.commands.VssRevisionExplorer.outputData
(VssRevisionExplorer.java:222)
        at 
org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand.stdoutNextLine
(ExternalCommand.java:656)
        at org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand.access$000
(ExternalCommand.java:33)
        at 
org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand$StdoutGrabber.run
(ExternalCommand.java:453)
[catch] at java.lang.Thread.run(Thread.java:484)

The revision explorer opens anyway but it contains correct information in 
incorrect positions.

This is the standard output of the SS command:

Current project is $/VirtualLover/com/dylogic/util
C:\users\gabriele.carcassi\VirtualLover\com\dylogic\util has been established
as the working folder for project $/VirtualLover/com/dylogic/util.History of 
$/VirtualLover/com/dylogic/util/WatchDog.java ...

*****************  Version 2   *****************
User: Gabriele.carcassi     Date: 21/05/01   Time: 15.23
Checked in $/VirtualLover/com/dylogic/util
Comment: Messo a posto il Log. Ripulito il resto del codice.

*****************  Version 1   *****************
User: Gabriele.carcassi     Date: 19/05/01   Time: 17.13
Created
Comment: Queste classi servono per terminare un processo dopo un tempo
prefissato.

**********************
Label: "Customz per Send delayed SMS"
User: Sergio.nalin     Date: 11/05/01   Time: 16.04

In the explorer, for version 1 is reported "Sergio.nalin" as the author 
and "16:04" as the date. It seems is getting them from the label.

Information for version 2 is correct.
Comment 1 Martin Entlicher 2001-05-21 17:00:50 UTC
I've tried to reproduce it, but all my revisions start with *** Version 1 ***
Can you please tell me how did you add the initial label:
**********************
Label: "Customz per Send delayed SMS"
User: Sergio.nalin     Date: 11/05/01   Time: 16.04

I need this to be able to reproduce it and test the fix. Thanks.
Comment 2 carcassi 2001-05-23 11:14:35 UTC
1) Create a new Project
2) Using VSS, go to File/Label... and add a label to the project.
3) Add a class to the project with a different user and at a different time.

It should be enough.
Comment 3 Martin Entlicher 2001-05-24 15:11:14 UTC
Thanks Gabriele for your help. The issue was fixed in the main trunk now and
will appear in development build #196.
Comment 4 carcassi 2001-05-25 14:16:52 UTC
Thank you for your fast replies! I am impressed.

I have tried build #196: the exception is not raised anymore and all the 
versions are being displayed. I have also noticed that the date is being 
displayed correctly too (both time and date).

There are two other problems, though, which should be related:

1) If there is a label, versions that are before that label don't have the date 
nor the author.
2) Labels are skipped. Would it be possible to have them displayed somehow?
Comment 5 Martin Entlicher 2001-05-25 15:00:15 UTC
Oh, I just didn't realize, that you can add more than one label to the file!
Now the label info is displayed for the whole file if you select the file
itself. But this is totally wrong! If I understand it right, the labels are
something like tags in CVS. I'll put the info to the apropriate revisions
properties. I'm not a professional VSS user, therefore I really appreciate your
tests.
Thanks.
Comment 6 Martin Entlicher 2001-05-30 09:13:35 UTC
*** Issue 12499 has been marked as a duplicate of this issue. ***
Comment 7 Martin Entlicher 2001-09-07 12:42:19 UTC
Hope, that it's finally fixed. Revision Explorer is not supported any
more, use the Versioning Explorer instead.
Fixed in dev build #20010910.
Comment 8 Jiri Kovalsky 2001-10-11 16:43:33 UTC
It is either not intuitive enough or I am blind, but finally found the
fix. If revision is labelled, each label has its own tab in properties
window. Verified in development build of NetBeans 3.3 #200110110100.
Comment 9 Quality Engineering 2003-07-01 13:04:25 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.