When a patch must include the differences between two repository revisions, in the same
repository or in two different repositories, the steps for creating the patch are the
following:
-
Go to menu .
This opens the Create patch wizard:
The Create Patch Wizard - Patch Type
-
Select the second option in the dialog.
-
Press the Next button.
The second step of the wizard is opened:
The Create Patch Wizard - Step 2
-
Select the first repository revision in the From panel.
-
Select the second repository revision in the To panel.
For both revisions you have the option of choosing between the HEAD revision and a
specific revision number. For a specific number 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.