File Comparators

Here you can configure external file compare tools which can be used instead of the built-in File Compare.

You can link a specific File Pattern to a file comparator. You can either choose to use the Built-in text file comparator, an External comparator or an External viewer.

External Comparators

An external comparator is defined by the operating system Command to be executed, and its Arguments. Arguments are passed to the Command as it would occur from the OS command line. The optional place holders ${leftFile} and ${rightFile} will be substituted by the absolute file path of the left and right file to compare, respectively. In cases, where SVN-internal files like the pristine copy is used for comparison, the content of this file is copied to a temporary location and this temporary file is passed as parameter. The optional place holders ${leftTitle} and ${rightTitle} will be substituted by the left and right file title, respectively, which SmartSVN would use when displaying its internal file comparator.

Furthermore, the place holders ${leftEncoding} and ${rightEncoding} will, if used, be substitued by the encoding of the left and right file, respectively. Refer to Text File Encoding for details.

With In case of svn:mime-type is binary, try to detect whether actually text type you can override binary svn:mime-types. In this case, SmartSVN will detect the content type text/binary itself by inspecting the file. This is the same as if svn:mime-type has not been set at all.

External Viewers

An external viewer is defined by the operating system Command to be executed, and its Arguments. It's executed two times, once for the left and once for the right file to 'compare'. Arguments are passed to the Command as it would occur from the OS command line. The optional place holders ${file} will be substituted by the absolute file path of the left and right file to view, respectively.