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

Re: Suggestion: the characters that do not allow committing.

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 05 Sep 2010 08:28:40 +0200

On 04.09.2010 00:09, Serge Tumanyan wrote:

> There are two problems here:
> 1. the hook script is called only for the commit, not for import or
> branching for example, at least this is mentioned in the documentation.

For branch/tag, the hook scripts are already called. For import, I'll
add the code so they are called.

> 2. There is no ability to prevent a commit/import/branching with an error
> message and returning back to commit/import/branching dialogue or at least I
> was unable to find this in the documentation.

Yes, there is: write any error text to the console error stream and
return something else than 0 as the exit code of your hook script.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2655563
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-05 08:29:16 CEST

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

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