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 34751 - cvs import error
Summary: cvs import error
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2003-07-04 01:35 UTC by kinghenree
Modified: 2003-12-11 14:27 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 kinghenree 2003-07-04 01:35:11 UTC
Every time I attempt to import a directory containing 
sources I receive the following error:

cvs [import aborted]: tag `-m' must start with a letter

Steps taken to produce error:
1. I right-click on a folder mounted under a CVS filesystem 
and choose CVS->Import.
2. I fill in the information under the CVS window that pops 
up and click OK.

The command line it is trying to execute is:

cmd /X /C "cd /D \"C:\development\\\.\"&&   cd /D 
\"guestbook\"&& \"C:\cygwin\bin\cvs.exe\" -d 
\":ext:user1@home.com:/home/cvsroot\" -f -z 6 import   -I 
lib target xdocs  -m \"Initial import of guestbook\" 
\"guest\" home guest-0_0_0  "

The problem seems to be it does not automatically quote the 
ignore ("-I") portion.

There are at least two workarounds that work for me:
1.  Within the cvs popup window, for the ignore field I 
quote the entire line myself.  For example:
 File to Ignore:  \"blah1 blah2 blah3\"
2.  I add the extra ignore switches:
 File to Ignore:  blah1 -I blah2 -I blah3

I have found it necessary to use the backslash+quote (\") 
method when utilizing wildcards.  For example:
 File to Ignore:  \"blah1 blah2 blah3 .blah*\"

Otherwise, it will produce the same error about the "-m" 
switch initially noted.

BTW, the IDE runs on Windows2000, but the cvs repository is 
located on a Red Hat Linux system.

Thanks.
Comment 1 Martin Entlicher 2003-07-04 15:31:52 UTC
You're right, the argument that is passed to -I should be quoted. This
is a bug in the CVS profiles.
Comment 2 Martin Entlicher 2003-07-04 15:45:19 UTC
Fixed in the main trunk and prj40_prototype branch:

Checking in cvsUnix.xml;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/config/cvsUnix.xml,v 
<--  cvsUnix.xml
new revision: 1.33; previous revision: 1.32
done
Checking in cvsWin.xml;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/config/cvsWin.xml,v 
<--  cvsWin.xml
new revision: 1.37; previous revision: 1.36
done
Checking in cvsWin98.xml;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/config/cvsWin98.xml,v 
<--  cvsWin98.xml
new revision: 1.37; previous revision: 1.36
done

Checking in cvs.xml;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/config/Attic/cvs.xml,v 
<--  cvs.xml
new revision: 1.1.2.4; previous revision: 1.1.2.3
done
Comment 3 Jiri Kovalsky 2003-10-14 15:33:38 UTC
Okay, works fine in development build #200310130100 of NetBeans 4.0
thus verifying.
Comment 4 Jiri Kovalsky 2003-11-04 14:43:30 UTC
Confirmed as fixed in Sun ONE Studio 5.0 patched with Update 1.
Comment 5 Antonin Nebuzelsky 2003-11-04 15:14:41 UTC
Fixed also in Nevada Patch 1 and in Arrow. (and confirmed verified by
Jirka above...)