Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could I configure IntelliJ diff viewer/merge tool as external tools in tortoiseSVN?

New IntelliJ diff viewer and merge tools are awesome. I'm wondering if I could configure them as external tools in tortoiseSVN.

I tried it setting intelliJ executable as external Diff Viewer in tortoiseSVN configuration...but it doesn't work.

enter image description here

Also I've been reading the IntelliJ documentation (Running IntelliJ IDEA as a Diff or Merge Command Line Tool) but I'm not sure how to configure it.

Thanks for the help.

like image 251
troig Avatar asked Oct 27 '15 16:10

troig


2 Answers

Re-read Comparing files using intellij idea as a diff command line tool until there will come enlightenment in getting correct command-line

<IntelliJ IDEA launcher> diff <path to file1> <path to file2>

where file1 is your local copy, file2 is the repository version.

for external diff for TortoiseSVN, there you have to use %base (repository-side file) and %mine (modified file in WC) variables as placeholders for compared files.

You addded nothing (nor command, nor parameters) into your command line, thus - got nothing

Answer

/path/to/idea diff %mine %base
like image 93
Lazy Badger Avatar answered Oct 30 '22 20:10

Lazy Badger


If you want to configure the merge tool, use this configuration:

/path/to/idea merge %mine %theirs %base %merged
like image 31
Marcus Schiesser Avatar answered Oct 30 '22 21:10

Marcus Schiesser