Command-line access to VS 2012 merge tool

前端 未结 2 775
名媛妹妹
名媛妹妹 2021-02-06 14:40

I am investigating using TFS 2012 as the Source Control provider for Matlab, on Windows 7. This requires installing the VS 2012 shell/TFS client, and the 64-bit MSSCCI provider

相关标签:
2条回答
  • 2021-02-06 15:33

    I found a solution for the error which occurs together with the merge option. I created the file which should be used for the merged file. See more details in my comment here: http://www.codeproject.com/Articles/649736/Solving-the-resx-Merge-Problem-in-TFS?msg=4745473#xx4745473xx

    0 讨论(0)
  • 2021-02-06 15:40

    The vsDiffMerge.exe tool appears to work for both diffing and three-way merging. I was successfully able to integrate the VS diff/merge tool with the Perforce client for merging and integrating.

    The arguments to be provided to the tool (at least for Perforce) are:


    Diff

    vsDiffMerge.exe /t %1 %2
    

    Where:

    • /t (open in a temporary tab, leave off to open in permanent tab)
    • %1 (First File)
    • %2 (Second File)

    Merge:

    vsDiffMerge.exe /m %1 %2 %b %r
    

    Where:

    • /m (merge operation, leave off to do a diff)
    • %1 (Their/Source file)
    • %2 (Your/Target file)
    • %b (Base file)
    • %r (Result file)

    Note: The "%" explanations came from Perfore documentation at: http://www.perforce.com/perforce/doc.current/manuals/p4v/Configuring_display_preferences.html#Diff

    EDIT: Sorry everyone, I'm not sure how I mixed that one up. Mark Sowul is entirely correct by my testing today. I have fixed my answer. Also, apologies for not getting this corrected as soon as the first comment was posted. I just arrived back home from an overseas trip.

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