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

Re: Re: Feature request: Configure hooks for server repository path

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 24 Oct 2014 14:11:55 +0200

On Fri, Oct 24, 2014 at 2:07 AM, Eugene Kotlyarov <e.kotlyarov_at_gmail.com>
wrote:

> > See the docs:
> >
> http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html#tsvn-dug-propertypage-tsvn-props
> >
> > You can specify the path to the hook script like this:
> > %REPOROOT%/trunk/contrib/hook-scripts/client-side/checkyear.js
> >
> > Instead of %REPOROOT% you can also specify %REPOROOT+%. The + is used to
> > insert any number of folder paths necessary to find the script. This is
> > useful if you want to specify your script so that if you create a branch
> > the script is still found even though the url of the working copy is now
> > different. Using the example above, you would specify the path to the
> > script as %REPOROOT+%/contrib/hook-scripts/client-side/checkyear.js.
> >
> Thank you!
>
> I'll investigate this solution.
> Couple of problems with it however are
> 1. Since this is client side script not all users may need/want to use it.
>

It asks whether you want to execute it.
And no: TSVN can not and will not ever try to guess whether a user will
need/want it. That's your job.
Either put it in the repository for all users, or don't and have each user
configure it manually.

> 2. Storing script in repository maybe inconvenient since it is not related
> to this repository project, and if there is a bug found in it, it will have
> to be updated in all branches where it is stored.
>

use externals.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3090399
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-10-24 14:12:22 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.