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

Can client-side hooks run a script not in working copy?

From: Ben Fritz <fritzophrenic_at_gmail.com>
Date: Mon, 5 Aug 2013 11:15:04 -0500

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html#tsvn-dug-propertypage-tsvn-props
says, "you can configure a script/tool to execute that resides in your
working copy by specifying the URL in the repository instead, using
%REPOROOT% as the part of the URL to the repository root".

But what if the script is not in the working copy?

My repository has multiple projects within, each with its own
independent trunk/tags/branches. Some people check out the entire
repository anyway (usually with a sparse checkout) but in general it
should work regardless of what branch of what project the working copy
points to.

I am thinking about creating a pre-commit hook that EVERY user on my
team should use. So it makes sense to me to put it into some
repository location independent of what project is being worked on.
But if I do this, it will probably never be in anybody's working copy.

Can I specify a repository path to a file NOT in the working copy, and
have it run as a hook script? Or do I need to stick it on a common
network share or something like that?

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-08-05 18:15:35 CEST

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