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 13508 - Forgotten -k Switch getOptString@\org\netbeans\lib\cvsclient\command\update\UpdateCommand.java
Summary: Forgotten -k Switch getOptString@\org\netbeans\lib\cvsclient\command\update\U...
Status: CLOSED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-11 10:54 UTC by Alexander R.J. Schießl
Modified: 2007-01-04 17:14 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 Alexander R.J. Schießl 2001-07-11 10:54:48 UTC
I tried to use the follwoing command "update -A -kb test.doc" to update the 
sticky kopts, but the Update Command delivers an error:

Illegal argument: null

Debugging showed that the -kb switch is transfered to '??'
Further analysis showed that the getOptString has no k Option in the 
getOptString method

    public String getOptString()
    {
        return "RCldPAfD:r:pj:";
    }

the cvs.exe tool shows that the -k option is allowed for update.

Usage: cvs update [-APdflRp] [-k kopt] [-r rev|-D date] [-j rev]
    [-I ign] [-W spec] [files...]
        -A      Reset any sticky tags/date/kopts.
        -P      Prune empty directories.
        -C      Overwrite locally modified files with clean repository copies.
        -d      Build directories, like checkout does.
        -f      Force a head revision match if tag/date not found.
        -l      Local directory only, no recursion.
        -R      Process directories recursively.
        -p      Send updates to standard output (avoids stickiness).
        -k kopt Use RCS kopt -k option on checkout.
        -r rev  Update using specified revision/tag (is sticky).
        -D date Set date to update from (is sticky).
        -j rev  Merge in changes made between current revision and rev.
        -I ign  More files to ignore (! to reset).
        -W spec Wrappers specification line.
Comment 1 Milos Kleint 2001-07-11 11:05:27 UTC
done as you suggested. I haven't tried myself, please check it out in
the next build (on Thu 12/Jul/2001) and verify or reopen the bug. Thanks.
Comment 2 Alexander R.J. Schießl 2001-07-11 12:53:00 UTC
Your change fixed the problem. Alex
Comment 3 Quality Engineering 2003-07-01 12:48:29 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.