Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you configure TortoiseSVN to use Visual Studio 2012 for diffing?

I want to use the new Visual Studio diffing tool for diffing changes via TortoiseSVN. What do I type in the external tool command line box?

like image 729
Luke Puplett Avatar asked Mar 06 '13 09:03

Luke Puplett


People also ask

What is SVN in Visual Studio?

VisualSVN is a transparent integration of the Subversion version control system to the Visual Studio development environment. VisualSVN allows you to take full control on any changes in the project that are made by you or your colleagues.


2 Answers

You can use vsDiffMerge.exe to do this.

Visual Studio 2012

Diff:

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\vsDiffMerge.exe" /t %base %mine %bname %yname

Merge:

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\vsDiffMerge.exe" /m %theirs %mine %base %merged

Visual Studio 2013 & 2014

Just identify the version number and replace the 12.0 in the above commands with the want you want. (Tested with 2015, 14.0.)

Visual Studio 2017

Diff:

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\vsDiffMerge.exe" /t %base %mine %bname %yname

Merge:

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\vsDiffMerge.exe" /m %theirs %mine %base %merged

References

vsDiffMerge.exe usage

See here and here.

TortoiseSVN command substitution

  • TortoiseSVN diff command substitutions
  • TortoiseSVN merge command substitutions
like image 96
Sam Avatar answered Sep 19 '22 21:09

Sam


Use this:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe -diff %base %mine

Taken from the TortoiseSVN manual, which shows the %paramNames around halfway down the page.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html#tsvn-dug-settings-progs

like image 21
Luke Puplett Avatar answered Sep 16 '22 21:09

Luke Puplett