Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-11088

SourceTree does not replace the $LOCAL, $REMOTE, etc., variables when calling the diff/merge tools



    • Last commented by user?:
    • Symptom Severity:


      Since several version (some of the last releasted for the 2.x and all of the 3.x) it is impossible to use the Diff/Merge tools, at least with BeyondCompare.

      The problem is that when SourceTree creates the process, it apparently does NOT substitute the $LOCAL, $REMOTE, $BASE, $MERGED variables for the correct filenames, thus the process gets created with incorrect parameters, something like this:

      "C:\Program Files\Beyond Compare 4\BComp.exe" \"$LOCAL\" \"$REMOTE\" "e:\temp\extdiff.lvsswo\4.0.a83bd46717c6\reportes\RepContratos\VRAVentasPorPauta95.cpp" "4.0.9443a11bb1b7\reportes\RepContratos\VRAVentasPorPauta95.cpp"

      Note the $LOCAL and $REMOTE parameters on the created process.

      This example is for a diff call. SourceTree appends the correct filenames to the process, but leaves the variables in place, which doesn't work for the tool. For diff it is possible to workaround the issue: deleting the parameters from the Diff configuration works. But for merge, which needs more data/parameters it is not possible to workaround it like this.

      This happens not only with the "BeyondCompare" option, but also with the Custom one. I haven't tried others, but if the Custom one fails I am guessing it will fail for all of them.

      I have tried removing the \", the backslash, and the " characters and it doesn't matter, the $VARIABLE is not being replaced.

      I have tried in the two computers I have at hand and some virtual ones and the same happens. I have updated, uninstalled and then reinstalled, and so on, and it's always the same result.





            • Votes:
              8 Vote for this issue
              11 Start watching this issue


              • Created:
                Last commented:
                6 weeks, 2 days ago