[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: TortoiseSVN.dll changes current directory in Open File dialog

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 09 Sep 2008 18:00:44 +0200

God_Mark wrote:
> OS: Windows Vista x86
>
> Tortoise SVN version : 1.5.3.13783 (Latest version found of website)
>
> Problem:
> I develop a application that uses mostly relative paths to it's
> startup directory and users require to browse certain files on disk
> using the Open File Dialog. Once the browsing of the file ends (the
> files i worked with are in a directory that uses svn) i set back the
> current directory manually to make sure that OFN_NOCHANGEDIR exists on
> the os and then start to open certain files using relative paths. The
> problem i encountered was that TortoiseSVN.dll (witch is loaded with
> the Open File Dialog) switches my active directory at a later time
> making all my relative paths invalid. I don't think that this is a
> normal behavior so i hoped to bring this probably unknown issue to
> your knowledge.

I don't see how TSVN could change the CWD *after* the file open dialog
is shown. The extension is loaded for the dialog, and all interface
methods of TSVN save the CWD at the beginning and restore it right
before the end of the method.
But once the file open dialog is closed, there's no way for TSVN (or any
other shell extension) to modify the CWD anymore: the dll is not loaded
anymore.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-09-09 18:01:09 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.