> Message: 10 > Date: Thu, 16 Jul 2009 18:01:46 +0200 > From: "Andrew Mark (CR/AEA2)" <mark.and...@de.bosch.com> > Subject: Re: [thg] show difference with different tool based on file > extentions ? > To: "tortoisehg-discuss@lists.sourceforge.net" > <tortoisehg-discuss@lists.sourceforge.net> > Message-ID: > <cd76803507633d4fb7fc6e8dd872d82205c44...@si-mbx09.de.bosch.com> > Content-Type: text/plain; charset="iso-8859-1" > > I'm looking at the same issue (just for word docs at the moment) and have > gone for the extdiff solution in order to reuse the nifty TortoiseSVN script. > > My extdiff section looks like this: > [extdiff] > cmd.mydiff = wscript > opts.mydiff = "c:\Program Files\TortoiseSVN\Diff-Scripts\diff-doc.js" > > This manages to open the current copy in the workspace with Word but cannot > find the temporary copy of the last checked in version which mercurial > presumably creates just for this purpose. > > More precisely: Diff-doc.js gives me the following failure message: "Error > comparing hgtest.<generated id>\foo.doc and c:\hgtest\foo.doc" > > What am I missing? > > Thanks in advance > > Mark
this is very helpful. so , I create an extra batchfile called : extdiff.cmd , like this : ------ extdiff.cmd------------------------------- @echo off setlocal pushd "%~dp2" ::Get file extention set ext=%~x2 if /i [%ext%]==[.doc] goto doc if /i [%ext%]==[.xxx] goto xxx :default :: other file extention , or no extention hg vdiff %2 goto :eof :doc :: file extention is .doc hg cp4 %2 goto :eof :xxx :: file extention is .xxx goto :eof ---------------------------------------------------- and define extdiff : ; ; Define external diff commands ; [extdiff] cmd.vdiff = C:\Program Files\TortoiseHg\kdiff3 cmd.extdiff = c:\extdiff.cmd cmd.cp4 = c:\Compare It!4.1\wincmp3.exe -------------- done. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Tortoisehg-discuss mailing list Tortoisehg-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss