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:
-
Go to menu .
This opens the
Create patch wizard:
The Create Patch Wizard - Patch Type
-
Select the first option in the dialog.
-
Press the Next button.
The second step of the wizard is opened:
The Create Patch Wizard - Step 2
-
Specify the working copy resource.
-
Specify the local file path of the working copy resource.
-
Specify the repository URL corresponding to the working copy resource.
-
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.
-
Press the Next button.
The next step of the wizard is displayed:
The Create Patch Wizard - Options
-
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).
-
Select the Ignore ancestry checkbox (optional).
If checked, the SVN ancestry that exists when the two URLs have a common SVN history
is ignored.
-
Select the Ignore line endings checkbox (optional).
If checked, the differences in line endings are ignored when the patch is
created.
-
Select the Ignore whitespaces checkbox (optional).
If checked, the differences in whitespaces are ignored when the patch is
created.
-
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.
-
Press the Next button.
This will go to the final step of the wizard:
The Patch Wizard - Add Unversioned Resources
-
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.
-
Press the OK button.
The patch is created by applying all the specified options.