Home  »  Support  »  Tutorials/Power Tips  »  UltraCompare  »  Version Control Comparison
IDM Power Tips

Version Control Comparison

UltraCompare v6.40 includes major improvements to the command line support that allow greater flexibility when integrating with other applications. If you're using version control in a team development environment, then UltraCompare v6.40 is exactly what you need. UltraCompare v6.40 integrates with your version control software to quickly diff files, resolve conflicts, merge, and more...

While most version control systems provide similar functionality, each version control system has a unique way of building the command line. Some are simple, just sending the two file names, others are more difficult. In order to support all the different systems, UC has been improved to process a wide array of command line parameters.

As a base, we have tested UltraCompare with the following version control systems. Click on the links below to learn how to integrate UltraCompare with the respective version control system:

Basic Command Line Rules

The command line support is the key component to the version control support. While the command line support is very flexible, there are some rules you must observe when building your command line strings:

1. All parameters must be separated by a space.

2. Compare type switches such as -t, -3, -p, -x, -d, and -w must always precede the related compare object (ie: the paths for the files/folders being compared).

GOOD: -t <filename1> <filename2> -b -lt -o <outputfile>
BAD: -t -o -b <filename1> -lt <filename2> <outputfile>

3. Logical units can appear in any order on the command line so long as they are paired with their related parameters:

GOOD: -title1 <titlename1> -title2 <titlename2> -t <filename1> <filename2>
GOOD: -title1 <titlename1> -t <filename1> <filename2> -title2 <titlename2>
GOOD: -t <filename1> <filename2> -title2 <titlename2> -title1 <titlename1>
BAD: -t <filename1> -title2 <titlename2> <filename2> -title1 <titlename1>

Back to top

Command Line Parameters

The following command line parameters may be used to invoke UltraCompare Professional from the command line. For a full list of the command line parameters, see the UltraCompare Help.

Parameter Description
-3 3-way text mode
-a sets Show All
-B ignore blank lines in text compare mode
-b ignore spaces in text compare mode
-d folder compare mode
-dmb sets Folder Compare type to Basic
-dmf sets Folder Compare type to Full
-dms sets Folder Compare type to Smart
-fb force all files to be compared as binary in folder compare mode
-ft force all files to be compared as text in folder compare mode
-horz sets view to horizontal layout
-i ignore case in text compare mode
-lt ignore line terminators
-m sets Show Matching
-ne sets Show Differences
-o creates output file
-op appends output to specified file
-p fast binary compare mode
-prf runs specified profile
-qc quick difference check performs a byte by byte check until the first difference is detected
-r compare folders recursively in folder compare mode
-rio reset ignore options
-rom read only merge mode
-t text compare mode
-title1 sets alias/title name for file/folder in first pane
-title2 sets alias/title name for file/folder in second pane
-title3 sets alias/title name for file/folder in third pane
-vert sets view to vertical layout
-w 3-way folder compare mode
-x smart binary compare mode

Back to top

AnkhSVN with Visual Studio 2008

AnkhSVN with Visual Studio 2008 (http://ankhsvn.open.collab.net/)

  1. Open Visual Studio 2008.
  2. Select Options from the Tools menu.
  3. Select Source Control and click on Plug-In Selection.
  4. Under Plug-In Selection select AnkhSVN.
  5. Under Subversion User Tools enter the following into the External Diff field:
    "C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe" "%base" "%mine%"

Back to top

Perforce for Windows

Perforce for Windows (http://www.perforce.com/)

  1. Select Preferences from the Edit menu.
  2. Go to the Diff tab.
  3. Under Default Diff Application select Other Application.
  4. Click the browse button next to the Location box and browse to the UltraCompare install directory. Select uc.exe.
  5. In the Arguments field, enter:
    %1 %2

Back to top


QVCS (http://www.qumasoft.com/index1.html)

  1. Select Preferences from the Admin menu.
  2. Go to the Utilities tab.
  3. In the Visual Compare Utility Command Line field, enter:
    "uc.exe %s %s"
  4. Click Apply.

Back to top


Subversion (http://subversion.tigris.org/)

  1. Create a batch file named "ucsvndiff.bat" in the UltraCompare install directory (e.g. "C:\Program Files\IDM Computer Solutions\UltraCompare").
  2. Open ucsvndiff.bat for editing..
  3. Type the following:

    "C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe" "%6" "%7" -title1 %3 -title2 %5

  4. Go to Subversion's configuration area, normally

    - or -
    C:\Users\<username>\Application Data\Subversion

    (One way to find this folder is to enter %APPDATA% in the address bar and then search for the "Subversion" folder.)

  5. Change the following lines in the "config" file in the "Subversion" folder:

    #diff-cmd=diff_program(diff, gdiff, etc.)


    diff-cmd=diff_program(diff, gdiff, etc.)

  6. Edit the diff-cmd to point to the ucsvndiff.bat file, e.g.:

    diff-cmd=C:\Program File\IDM Computer Solutions\UltraCompare\ucsvndiff.bat

Back to top


TortoiseCVS (http://tortoisecvs.org/)

  1. From context menu in Windows Explorer select CVS and then Preferences.
  2. Select Tools tab.
  3. For Diff application, browse to UltraCompare install directory and select uc.exe.
  4. For Two-way diff parameters enter the following:
    "%1" "%2"

Please note: A space must be inserted between the specified values.

Back to top


TortoiseSVN (http://tortoisesvn.tigris.org/)

  1. From context menu in Windows Explorer select TortoiseSVN and then Settings.
  2. Go to Diff Viewer under External Programs.
  3. Under "Configure the program used for comparing different revisions of files" select External.
  4. Click browse button and browse to UltraCompare install directory. Select uc.exe and press OK.
  5. Add the following string to the end of the uc.exe path:

    %base %mine -title1 %bname -title2 %yname

  6. The constructed string should now look like this:

    C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe %base %mine -title1 %bname -title2 %yname

  7. Press Apply button.

Back to top

Visual SourceSafe 2005

Visual SourceSafe 2005 (installed from Visual Studio DVD)

  1. Select Options from Tools menu.
  2. Select Custom Editors tab.
  3. Select File Difference under Operation:.
  4. In the File Extension field, enter: ".*"
  5. In the Command Line field, enter: C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe %1 %2
  6. Press Add button.

Back to top

Back to power tips index

Buy Now

Get your solution today!

Save when you bundle and complete your solution.

Application Screenshots


Portable Apps

Unleash the power of the total file management solution on your flash drive!

Still not using UltraCompare Pro?

Pro vs. Lite