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

Re: Using client hook script

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 2 May 2012 12:43:31 +0200

On Wed, May 2, 2012 at 12:26 PM, Oto BREZINA <otik_at_printflow.eu> wrote:
> Using nightly I'm able to use client size hooks.
> I use .js file for checking xml file integrity.
>  - How can I pass result into TSVN is case of error to stop commit?
>  - how to check only xml files selected to commit
>  - hook scripts can be set for files or dirs only?
> I get thru manual, but simple example would be better.

Out own working example:

that script gets executed pre-commit and checks whether all source
files have the current copyright year set. Errors if not all have it
set right, returns the error message indicating which files need to be


  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-02 12:44:00 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.