coder
coder

Reputation: 95

SVN Precommit hook: current working directory of client machine

I am trying to setup a pre-commit hook in the SVN server side. The pre-commit script is working fine. But I want to run this precommit hook only for particular directory in the SVN Repo but not for all the folders. please help :)

ex: I would like to run the pre-commit hook ONLY for "trunk\scripts" folder

Upvotes: 0

Views: 237

Answers (1)

Lazy Badger
Lazy Badger

Reputation: 97282

svnlook is your best friend for most tasks of hooks.

In your case you have to look at svnlook dirs-changed, which output list oif all directories, affected by transaction and plain | grep will check presence of directory-of-interest it it

Upvotes: 3

Related Questions