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.
Due to the new issue tracking support we needed to make some patch functionality available through the diff API. New utility class PatchUtils with two new methods: isPatch(patchFile) applyPatch(patchFile, context)
Created attachment 84462 [details] changes
[JG01] applyPatch should delegate to the actual VCS if it has such functionality, e.g. 'hg imp --no-commit', otherwise to /usr/bin/patch if that exists, and only to a built-in impl as a last resort.
> [JG01] applyPatch should delegate to the actual VCS if it has such functionality, e.g. 'hg imp --no-commit', > otherwise to /usr/bin/patch if that exists, and only to a built-in impl as a last resort. all what the patch api is supposed to do is to expose the actual functionality available via the Tools > Apply Diff Patch action which curretlly works only with the build-in impl and doesn't know anything about VCS. Sounds more like a feature request to the "Apply Diff Patch" action/functionality in general.
Y01 Add private constructor to PatchUtils
[Y01] - done
Created attachment 85298 [details] added Y01
[JG01] filed issue #169288 to keep track of it if no other objections are raised i will apply the last patch
fixed changeset : 139503:777748941b6e author : Tomas Stupka <tstupka@netbeans.org> date : Tue Jul 28 15:20:57 CEST 2009
Integrated into 'main-golden', will be available in build *200907300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/777748941b6e User: Tomas Stupka <tstupka@netbeans.org> Log: #168246 - adding patch functionality to the diff API