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 7947 - CVS refresh does not work on files more than 1 level deep from the project panel
Summary: CVS refresh does not work on files more than 1 level deep from the project panel
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscvs (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 normal (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-19 01:21 UTC by spf
Modified: 2003-07-02 17:17 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 spf 2000-10-19 01:21:41 UTC
I am using Netbeans build 50 on WinNT with jdk1.3. I have CVS on a pserver
called cvs. The mounted directory is d:/spf/java. I get an error when I do
a CVS Refresh from the Project panel (not from the Filesystems panel) on
any file that is at least 1 directory below the mounted directory (for
example, I do not get an error on d:/spf/java/foo.java but I do get one
on d:/spf/java/bar/foo.java). Here is the error:


LIST:
LIST: org.netbeans.modules.vcs.cmdline.list.CvsListCommand.class cmd /X /C "set
CVSROOT=:pserver:spf@cvs:/cvs&& cd /D d:\spf\java\\filters\.&& \"cvs\" status -l"
LIST: cmd /X /C "set CVSROOT=:pserver:spf@cvs:/cvs&& cd /D
d:\spf\java\\filters\.&& \"cvs\" status -l"
The system cannot find the path specified.
LIST: Command failed.

===========================================================


I suspect the error is in

cd /D d:\spf\java\\filters\.

the \\ being the error.
Comment 1 Martin Entlicher 2000-10-19 11:45:59 UTC
I'm sorry, but I was not able to reproduce it.
Can you try to do the same from the Filesystem panel and compare the execution
command ? It seems to me that the problem is in construction of the path in
Project panel, where it can be problematic to find the real path.
Does you folder "d:\spf\java\filters" really exist ?

The \\ does not cause the error (at least on my Win NT I can write
"cd org\\\\\\netbeans" and it goes to org\netbeans successfully).
Comment 2 spf 2000-10-19 16:44:59 UTC
You're right, d:\spf\java\filters does not exist. It seems that when refresh is
executed from the project panel, it is eating part of the path. The correct path
is d:\spf\java\fileformat\filters. Here is the command as executed from the
filesystems panel:

LIST: org.netbeans.modules.vcs.cmdline.list.CvsListCommand.class cmd /X /C "set
CVSROOT=:pserver:spf@cvs:/cvs&& cd /D d:\spf\java\\fileformat\filters\.&&
\"cvs\" status -l"
stderr: [LIST: cmd /X /C "set CVSROOT=:pserver:spf@cvs:/cvs&& cd /D
d:\spf\java\\fileformat\filters\.&& \"cvs\" status -l" ]
LIST: Command succeeded.

And here is the command executed on the same file from the project panel:

LIST: org.netbeans.modules.vcs.cmdline.list.CvsListCommand.class cmd /X /C "set
CVSROOT=:pserver:spf@cvs:/cvs&& cd /D d:\spf\java\\filters\.&& \"cvs\" status -l"
stderr: [LIST: cmd /X /C "set CVSROOT=:pserver:spf@cvs:/cvs&& cd /D
d:\spf\java\\filters\.&& \"cvs\" status -l" ]
LIST: Command failed.

LIST command failed.
Comment 3 Martin Entlicher 2000-10-19 17:15:59 UTC
Thank you for the description. Now I'm able to reproduce it. When I add to
Project a subdirectory, it skips the part from the root to that subdirectory.
I'll try to do a fix...
Comment 4 Martin Entlicher 2000-10-23 16:14:59 UTC
Fixed in main trunk in build #54 and in boston branch in build #1129.
Comment 5 dmladek 2001-02-05 12:55:59 UTC
Automaticaly changed Version from "Other" to "Dev"
Version "Other" is nonsence
Comment 6 Quality Engineering 2003-07-02 17:17:11 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.