This is what I get when I try Mads' suggestion. c:\hgtest>hg --debug mydiff making snapshot of 1 files from rev f1b44d0d137d foo.doc running '"wscript" "c:\\Program Files\\TortoiseSVN\\Diff-Scripts\\diff-doc.js" " hgtest.f1b44d0d137d\\foo.doc" "c:\\hgtest\\foo.doc"' in c:\docume~1\anm2fr\local s~1\temp\extdiff.mg4phj
As Steve has stated, this is not a problem with files being deleted, I have looked in the exdiff.mg4phj temporary directory and can see the copy of foo.doc. It is just that when the js script is started up it cannot find the temporary copy. Which is what would happen if wscript was ignoring the working directory it is set to. Sorry if this is verging on OT but it is a bit of a deal-breaker for me. Cheers Mark -----Ursprüngliche Nachricht----- Von: Steve Borho [mailto:[email protected]] Gesendet: Freitag, 24. Juli 2009 17:43 An: Mads Kiilerich Cc: Andrew Mark (CR/AEA2); [email protected] Betreff: Re: [thg] Visual Diff On Fri, Jul 24, 2009 at 3:29 AM, Mads Kiilerich<[email protected]> wrote: > On 07/24/2009 10:06 AM, Andrew Mark (CR/AEA2) wrote: > > Hallo again guys, > > Sorry I'm beginning to sound like a broken record here, but I still have a > problem with Visual Diff. > > I have installed 8.1 > > I have the following in my Mercurial.ini > > <<<<<<<<<<<<<<<<< > [extdiff] > cmd.mydiff = wscript > opts.mydiff = "c:\Program Files\TortoiseSVN\Diff-Scripts\diff-doc.js" >>>>>>>>>>>>>>>>>> > > ... and when I now call the Visual Diff function from the menu I get the > following behaviour: > > Dialog pops up but there is no sign of any temporary files anywhere. > > You can try to verify the problem at Mercurial level: Run "hg --debug > mydiff". > > My guess would be that the diff script forks immediately and Mercurial thus > cleans up the temporary files before the diff script can read them. You will > need a non-forking diff script. That shouldn't be a problem with TortoiseHg. We create the temporary files when we open the visual diff dialog, and don't delete them until that dialog is closed. I don't understand why it's not working, perhaps it's a path escaping problem. -- Steve Borho ------------------------------------------------------------------------------ _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

