Creating and Applying a Patch (Subversion)

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 Team > (Subversion >) Export Diff Patch from the main menu. The Export Diff Patch dialog opens.
  3. Select one of the following:
  4. Click OK. A patch file is created 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 Team > (Subversion >) 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 Subversion
Merging File Revisions in Subversion
Resolving Merge Conflicts in Subversion

Legal Notices