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

Re: TSVN hooks determine relative path

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-06-19 18:44:36 CEST

Sebastian Nehls wrote:
> Hi,
>
> i am trying to use the local hooks that TSVN supports. In my project
> there is a folder /test that contains all testscripts i want to execute
> upon checkin. I wrote a batchfile that should call a perl script in the
> test folder. Batchfile and perl script are in the same folder. My
> problem is to relatively adress that test folder, simply using .\test
> isn't working, neither is %CD%\test, because the hook skript is executed
> in some temp directory.
> So how can i determine the location of the hook script in my project,
> during runtime?

You can't. Sorry.
There is no way for you to know that. Even TSVN can't know it because
you can check out a working copy from any sub-url. You might even check
out beneath your test folder where you have the scripts, and then you
wouldn't even have that test folder checked out.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Jun 19 18:44:34 2007

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.