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 55958 - Tree and table in CVS status is not the same as on the disk
Summary: Tree and table in CVS status is not the same as on the disk
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 55959 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-04 12:17 UTC by Marian Mirilovic
Modified: 2006-03-24 12:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of differencies between CVS status tree and Files view (103.29 KB, image/png)
2005-03-04 12:18 UTC, Marian Mirilovic
Details
strange file (57.29 KB, image/png)
2005-03-04 14:17 UTC, Peter Pis
Details
The output from "cvs status" that demonstrates badly merged streams. (242.78 KB, text/plain)
2005-03-04 19:42 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2005-03-04 12:17:44 UTC
NB4.1(200503031900), JDK1.5.0_03(ea)

It seems like directories hierarchy displayed in
CVS status tree is wrong and it causes failure of
diffing some files.

Look at attached screenshot and compare hierarchy
of files in CVS status tree and Files view - it's
different, so if I invoke View Diff button on
MeasureActions.java file -> Graphical diff failed
(you can find cvs output on screenshot in output tab).

It's regression, some time ago it worked fine.
Comment 1 Marian Mirilovic 2005-03-04 12:18:39 UTC
Created attachment 20684 [details]
Screenshot of differencies between CVS status tree and Files view
Comment 2 Peter Pis 2005-03-04 13:17:57 UTC
*** Issue 55959 has been marked as a duplicate of this issue. ***
Comment 3 Peter Pis 2005-03-04 14:14:42 UTC
If status is invoked on versioned directory (the root of the
directory),  there is something like this. (see attached picture -
status.png)
Comment 4 Peter Pis 2005-03-04 14:17:42 UTC
Created attachment 20688 [details]
strange file
Comment 5 Martin Entlicher 2005-03-04 15:06:20 UTC
This does not seem to be P1.
However, I've reproduced it and it happens only on the root of the VCS FS.
Comment 6 Martin Entlicher 2005-03-04 19:40:36 UTC
The standard and error output are merged in a wrong way!!!
It looks like the error redirection functionality of ProcessBuilder is
not yet ready for production use! It causes problems on Windows (viz
issue #55594) and now even on Linux! The use of ProcessBuilder seems
to be a big mistake, because it's not reliable at all and cause
strange errors!

We need to remove the ProcessBuilder usage (it's a pity, initial tests
provided good results and it looks like there is no way to reliably
verify it's functionality!!). :-((((
(sorry for a lot of exclamation marks, I'm a bit upset....)
Comment 7 Martin Entlicher 2005-03-04 19:42:07 UTC
Created attachment 20695 [details]
The output from "cvs status" that demonstrates badly merged streams.
Comment 8 Martin Entlicher 2005-03-07 16:03:56 UTC
Well, this is also a fault of streams handling from the JavaCVS
library. The streams can be mixed there in random order. We got this
behavior anyway from Runtime.exec(), therefore there was no need to
make it better. Now we need a more reliable solution.
Comment 9 Martin Entlicher 2005-03-14 14:09:12 UTC
Fixed for built-in client:

/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/JavaCvsCommand.java,v
 <--  JavaCvsCommand.java
new revision: 1.12; previous revision: 1.11

For command-line client and :local: connection it was fixed as a part of issue
#55594.
Comment 10 Marian Mirilovic 2005-03-17 12:58:45 UTC
verified in NB4.1(200503170655)