Yup, converting to absolute paths was all I needed to do. I can't see anywhere 
in the script where the CWD gets changed but then when you're driving Word from 
JScript I suppose any number of suprising things can happen.

For the future would it not be better to just supply the two absolute paths 
from the start? Then "nothing can ever go wrong" ;-)

Cheers and thanks to you all for your help and keep up the great work

Mark


-----Ursprüngliche Nachricht-----
Von: Steve Borho [mailto:st...@borho.org]
Gesendet: Montag, 27. Juli 2009 17:11
An: Andrew Mark (CR/AEA2)
Cc: tortoisehg-discuss@lists.sourceforge.net
Betreff: Re: [thg] Visual Diff (path issues)

On Mon, Jul 27, 2009 at 2:57 AM, Andrew Mark
(CR/AEA2)<mark.and...@de.bosch.com> wrote:
> 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.

It does look like the javascript is changing it's CWD.  Perhaps you
can write a wrapper batch file that converts the arguments to absolute
paths and then calls that java script.

--
Steve Borho

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-discuss mailing list
Tortoisehg-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to