Create a Patch Between Working Copy and Repository Revision

When the changes that must be included in a patch were not committed to the repository the patch should be created with the differences between the selected item(s) of the working copy and a repository revision. The steps are the following:
  1. Go to menu Tools > Create patch.
    This opens the Create patch wizard:

    The Create Patch Wizard - Patch Type

  2. Select the first option in the dialog.
  3. Press the Next button.
    The second step of the wizard is opened:

    The Create Patch Wizard - Step 2

  4. Specify the working copy resource.
    1. Specify the local file path of the working copy resource.
    2. Specify the repository URL corresponding to the working copy resource.
  5. Select the repository revision.
    You have the option of choosing between the HEAD revision and a specific revision number. For the second option you should press the History button to display a list of the repository revisions.
  6. Press the Next button.
    The next step of the wizard is displayed:

    The Create Patch Wizard - Options

  7. Select the depth of the patch operation.
    In case of a file resource the depth is always zero. In case of a folder resource the depth has one of the following values:
    • Current depth - The depth of going into the folder for creating the patch is the same as the depth of that folder in the working copy.
    • Recursive (infinity) - The patch is created on all the files and folders contained in the selected folder.
    • Immediate children (immediates) - The patch is created only on the child files and folders without going in subfolders.
    • File children only (files) - The patch is created only on the child files.
    • This folder only (empty) - The patch is created only on the selected folder (that is no child file or folder is included in the patch).
  8. Select the Ignore ancestry checkbox (optional).
    If checked, the SVN ancestry that exists when the two URLs have a common SVN history is ignored.
  9. Select the Ignore line endings checkbox (optional).
    If checked, the differences in line endings are ignored when the patch is created.
  10. Select the Ignore whitespaces checkbox (optional).
    If checked, the differences in whitespaces are ignored when the patch is created.
  11. Select the output location.
    • Save in clipboard - The patch will be created and saved in clipboard. This is useful when you do not want to save the patch in a file on disk.
    • Save in file - The patch will be created and saved in the specified file.
  12. Press the Next button.
    This will go to the final step of the wizard:

    The Patch Wizard - Add Unversioned Resources

  13. Select the unversioned files that will be included in the patch.
    If the patch is applied on a folder of the working copy and that folder contains unversioned files this step of the wizard offers the option of selecting the ones that will be included in the patch.
  14. Press the OK button.
    The patch is created by applying all the specified options.