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 - DiffCommand lacks the -N switch for new and/or removed files
Summary: DiffCommand lacks the -N switch for new and/or removed files
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS library (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-08 12:08 UTC by nexus021
Modified: 2008-01-08 13:17 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.