Diff Preferences
To configure the SVN Diff options, open the Preferences dialog box and go to Diff.
The following options are available:
- Default algorithm
- The default algorithm used for performing comparisons. The following options are available:
-
Auto - Selects the most appropriate algorithm, based on the compared content and its size (selected by default).
-
Lines - Computes the differences at line level, meaning that it compares two files or fragments looking for identical lines of text.
-
XML Fast - Comparison that works well on large files or fragments, but it is less precise than XML Accurate.
-
XML Accurate - Comparison that is more precise than XML Fast, at the expense of speed. It compares two XML files or fragments looking for identical XML nodes.
-
- Algorithm strength
- Controls the amount of resources allocated to the application to perform the comparison. The algorithm stops searching more differences when reaches the maximum allowed resources. A dialog box is displayed when this limit is reached and partial results are displayed. Four settings are available: Low, Medium (default), High and Very High.
- Show pseudo conflicts
- Specifies whether or not the file comparison displays pseudo-conflicts. A pseudo-conflict occurs when two users make the same change (for example, when they both add or remove the same line of code).
- Ignore Whitespaces
- If enabled, before performing the comparison, the application normalizes the content
(collapses any sequence of whitespace characters into a single space) and trims its
leading and trailing whitespaces.
Note
If the Ignore Whitespaces checkbox is selected, comparing thea b
sequence witha b
, Syncro SVN Client finds no differences, because after normalization, all whitespaces from the first sequence are collapsed into a single space character. However, when comparinga b
withab
(no whitespace betweena
andb
), Syncro SVN Client signals a difference. - XML Diff section
-
- Ignore
- Allows you to specify the types of XML nodes that will be ignored in the file comparison for the XML Fast and XML Accurate algorithms.
- Ignore nodes by XPath
- If enabled, you can enter an XPath expression to ignore certain nodes from the comparison. It will be processed as XPath version 2.0. The XPath expression specified in this option is used as the default ignore instructions only when the application is started. If you enter an XPath expression in the similar option on the Diff Files toolbar, that expression will be used instead.
- Merge adjacent differences
- If enabled, the application considers two adjacent differences as one when the differences are painted in the side-by-side editors. If disabled, every difference is represented separately.
- Mark end tags as different for modified elements
- If enabled, end tags of modified elements are also presented as differences. Otherwise, only the start tags are presented as differences.
- Ignore expansion state for empty elements
- If enabled, empty elements in both expansion states are considered matched
(that is
<element/>
and<element></element>
are considered equal).
- External Diff section
-
- Compare With External Application
- Specifies an external application to be launched for compare operations in the
following cases:
- When two history revisions are compared.
- When the working copy file is compared with a history revision.
- When a conflict is edited.
The parameters ${firstFile} and ${secondFile} specify the positions of the two compared files in the command line for the external diff application. The parameter ${ancestorFile} specifies the common ancestor (that is, the BASE revision of a file) in a three-way comparison. The working copy version of a file is compared with the repository version, with the BASE revision (the latest revision read from the repository by an Update or Synchronize operation) being the common ancestor of these two compared versions.
Important
If the path to the external compare application includes spaces (or any of the subsequent options or arguments), then each of these paths or tokens must be double-quoted for the Syncro SVN Client to correctly parse and identify them. For example,C:\Program Files\compareDir\app name.exe
must be written as"C:\Program Files\compareDir\app name.exe"
.