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

hooks and absolute paths...

From: Dennis Moeller <dennis.moeller_at_magnaecar.com>
Date: Wed, 8 Jun 2011 08:15:47 -0700 (PDT)

Hello everybody,

I'm facing the following problem and I don't have any idea how to solve it. Hope somebody can help me.

I have created a "Start Commit Hook" which calls a batch file. In the "Configure Hook Scripts"-window I have entered the "working copy path" and the "command line to execute". Both are absolute paths, let's say the latter one is C:\_CSP\test.bat. So far, everything is fine with this particular configuration. The hook knows that it has to run C:\_CSP\test.bat once it is triggered. Once commited to the repository the new hook and the batchfile is made available to all my collegues.
 
Now, what happens if one of my collegues checks out the files to another machine with another individual path (let's say C:\latestver\123\_CSP) is this: as soon as the hook is triggered an error message pops up saying, that the hook script cannot find the batch file (because the hook still is linked to C:\_CSP\test.bat which corresponds to my setup on my machine).

What can I do that my collegues get the batch file executed without changing the hook's path to their needs (in this example to C:\latestver\123\_CSP\test.bat)?

Thanks in advance!
Dennis

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2760499

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-06-08 18:38:29 CEST

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

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