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 124879

Summary: DiffCommand lacks the -N switch for new and/or removed files
Product: versioncontrol Reporter: nexus021 <nexus021>
Component: CVS libraryAssignee: issues@versioncontrol <issues>
Status: NEW ---    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description nexus021 2008-01-08 12:08:45 UTC
Hi,

I am building an application that requires me to diff between local source and a revision tag.

If any local files are removed or added, then the diff does not pick up the changes because the -N switch is not present
in the API.

DiffCommand dc  = new DiffCommand();

dc.getOptString();

/**
     * String returned by this method defines which options are available for this particular command
     */
    public String getOptString() {
        return "Rlr:D:k:wBbicu"; //As you can see there is no provision made for the -N switch
    }

This works from the other GUI and command line CVS apps, but not from JavaCVS.

I will be very grateful if you guys can fix this and make a new release or perhaps let send me the new classes or
whatever, because I really cant make any progress with my app without this switch.

Kind Regards,

Marno Roux

mroux21@gmail.com
Comment 1 Maros Sandor 2008-01-08 13:17:32 UTC
We can add this option to the javacvs API, it should be no big deal, scheduling for future. If you need the code there
ASAP feel free to provide a patch to DiffCommand and we will eventually integrate it.