Creating and applying Engineering Workflow Management source control patches

A Engineering Workflow Management source control patch is a file that captures the differences between a project in a sandbox and its counterpart in the repository.

About this task

A patch is like a change set, but can be shared with users of other SCM systems and also with Engineering Workflow Management source control users in other repositories. A patch can capture the differences between a project in a sandbox and its counterpart in the repository. It can also capture the combined effect of a number of change sets.
Note: Only ASCII text files can be included in a patch. For information about changing the properties of a file that is incorrectly classified as a binary file, see Specifying file properties and line delimiter types.

Procedure

  • To create a Engineering Workflow Management source control patch:
    1. In the Pending Changes view, right-click the change set or Unresolved folder that contains the files that you want to include in the patch and click New > Patch.
    2. In the Create Patch window, review the set of files to be included in the patch, and clear any that you do not want to include.
    3. Specify where to save the patch file. Select File to save the patch to a file and type a path name to use, or click Browse to browse for a location. Select Clipboard to save the patch file on the system clipboard.
    4. Click OK to create the patch.
  • To apply a Engineering Workflow Management source control patch:
    1. On the Eclipse main menu, click Project > Apply Patch.
    2. In the Apply Patch window, specify where to find the patch file. Select File and type the path name of the file or click Browse to browse for it. On Windows, you can select Clipboard to specify that the file is on the system clipboard.
    3. Click OK.
      Patches are displayed in a special Pending Patches folder in the Pending Changes view. Review the files that are included in the patch, and clear the selection for any that you do not want to apply. Then, take one of the following actions:
      • To merge a patch into your sandbox, right-click the patch and click Auto Resolve. The patch is merged into the sandbox.
      • To apply the patch to a different target, click Change Target. This option allows you to apply a patch if the target has been moved since the patch was created and Engineering Workflow Management source control is unable to find the target at its new location.
      • To remove some or all of the patch from the Pending Patches folder without applying it (for example, if you have finished merging the patch, or decide that you do not want to apply it), click Remove from View.