How to use Visual Studio (vsdiffmerge) as external diff tool in SourceTree for Mercurial?

前端 未结 5 1915
心在旅途
心在旅途 2021-02-05 05:32

I am using Mercurial for my source control and SourceTree to manage it. I want to use Visual Studio\'s built in diff and merge tool (vsdiffmerge) for comparing files however thi

相关标签:
5条回答
  • 2021-02-05 06:02

    With Visual Studio 2015 Update 1 and SourceTree 1.7.0.32509 this is only setting, which works for me:

    C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/vsDiffMerge.exe 
    $REMOTE $LOCAL $BASE $MERGED //m
    
    0 讨论(0)
  • 2021-02-05 06:06

    For Visual Studio 2015

    Put this line in the Diff Command box:

    C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/vsDiffMerge.exe
    

    And this one in the Arguments box:

    $REMOTE $LOCAL $BASE $MERGED //m
    
    0 讨论(0)
  • 2021-02-05 06:10

    Follow this SO for more guidance What are the command line arguments for TFS default merge tool for VS 2012?

    Also these pointers http://roadtoalm.com/2013/10/22/use-visual-studio-as-your-diff-and-merging-tool-for-local-files/

    Truth is, I tried setting it up as well and didn't have much luck. I happen to use Beyond Compare. If you want it to work, at least stay within the choices that SourceTree offers in the drop-down list of external diff options. No good reason to use anything else they aren't supporting.

    0 讨论(0)
  • 2021-02-05 06:13
    1. You have a lot of useless (at least) blackslashes in commands and arguments
    2. Read Setting Up DiffMerge page, second chapter and fix own mistakes
    0 讨论(0)
  • 2021-02-05 06:20

    For Visual Studio 2019 Enterprise vsDiffMerge.exe location is:

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\vsDiffMerge.exe

    0 讨论(0)
提交回复
热议问题