Creating and Applying a Patch (CVS)

See Also

Patch files enable software developers who are not sharing a common repository to distribute and integrate changes that have been made to the code. The IDE enables you to create and apply patches that update copies of source files so that you do not have to incorporate the changes manually.

To create a patch file:

  1. Select a versioned file (e.g. in the Projects, Files, or Favorites window) for which you want to create a patch.
  2. Choose Versioning > Export Diff Patch from the main menu. The Export Diff Patch dialog opens.
  3. In the dialog, enter a name for the patch file and specify the location where you want to save the patch.
  4. Click Export. A patch file is created in the specified location containing the differences between the source file versions.

To apply a patch to a local file or folder:

  1. Select a versioned file or folder (e.g. in the Projects, Files, or Favorites window) on which you want to apply the patch.
  2. Choose Versioning > Apply Diff Patch from the main menu. The Apply Diff Patch dialog displays.
  3. In the dialog, type the path or navigate to the patch file you want to apply.
  4. Click Patch. The patch is applied to the selected file and a dialog opens, confirming that the patch was applied successfully. Click Yes to view changes in the IDE's Diff Viewer.

Notes:

See Also
Comparing File Revisions in CVS
Merging File Revisions from a Branch
Resolving Merge Conflicts

Legal Notices