How can I config to use my customized diff3 program for a specific type of file (e.g. all ".dtxml" files)

32 views
Skip to first unread message

bingsheng xue

unread,
Mar 15, 2022, 10:50:22 PM3/15/22
to TortoiseSVN
Hi,

I want to always use my own diff3 program only for "*.dtxml" files, but I can't find any way to config that. My diff3 program is only able to merge my "*.dtxml" files and not able to merge any other types of files.

For now, if I want to update a folder that contains several types of files, I can only use "svn update" command to update them using the default internal diff3 program for all files, or I can use "svn update --diff3-cmd myprogram.exe" to update them all using my diff3 program (which would cause a problem if there are other types of files).

(Note: The DIFF-VIEWER or MERGE-TOOL advanced settings in Tortoise are not able to do this work. They are only previewing GUI programs and only run when you click the modified/conflicted file status row in the TortoiseSVN window.)

Any help would be much appreciated! Thank you all!

lorenz

unread,
Mar 16, 2022, 12:08:33 PM3/16/22
to torto...@googlegroups.com
You could teach your myprogram.exe to forward non-dtxml file to the
default merge tool

or use a batch / powershell script to do so
--

Lorenz

Stefan

unread,
Mar 16, 2022, 12:49:18 PM3/16/22
to TortoiseSVN
In the settings dialog, diff/merge tools, advanced settings you can add your own extension with your own diff/merge tool:

lorenz

unread,
Mar 17, 2022, 11:32:51 AM3/17/22
to torto...@googlegroups.com
if I understand the OP correctly, he wants to specify the merge tool
used in case of an update operation (dependent on the file type).

The setting syou mention above are, as far as I understand, only for
the GUI-Diff/Merge tools.
--

Lorenz

bingsheng xue

unread,
Mar 17, 2022, 12:10:09 PM3/17/22
to TortoiseSVN
Thanks! Iorenznl
But could you tell me what's the exact command to forward non-dtxml files to the default svn diff3 program, either in a batch or in powershell? I cant find any document about that.

lorenz

unread,
Mar 18, 2022, 4:20:13 AM3/18/22
to torto...@googlegroups.com
bingsheng xue ?? TortoiseSVN wrote:

>Thanks! Iorenznl
>But could you tell me what's the exact command to forward non-dtxml files
>to the default svn diff3 program, either in a batch or in powershell? I
>cant find any document about that.

good question 8-)

but I have no answer to it.
--

Lorenz


>?2022?3?17???? UTC+8 00:08:33<lorenznl> ???
Reply all
Reply to author
Forward
0 new messages