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

Re: Client Pre-commit hook

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 13 Sep 2013 18:52:24 +0200

On 12.09.2013 11:24, Ian Hotchkiss wrote:
> I have been developing a Client side Pre-commit hook written in c# which I want to distribute this to the whole team.
> Having created the hook and got it working on my machine I looked at the registry settings associated with the pre-commit hook.
>
> Whilst I can export the relevant registry key value I am unable to import it despite regsvr saying it was successful. I believe that this is due to the fact that Tortoise stores the entry within the registry as a “REG_SZ” type value with carriage returns in the text string rather than using a “REG_MULTI_SZ” type. I would like to report this as a bug.
>
> In trying to workaround this I discovered the “tsvn:precommithook” property. When I set this to point to my hook located within the repository nothing appears to happen and it fails to detect and reject issues the same binary detects when started using the TortoiseSvn – settings – Hook scripts way.
>
> Do you know what I am doing wrong here?
>
> The actual property is of the form: -
>
> “tsvn:precommithook pre_commit_hook %REPOROOT%/branch/IanH/QlDepot/Quant/LTQuantLib/Tools/Hools/PreCommit/PreCommit.exe true hide enforce.

You've set the hook at
%REPOROOT%/branch/IanH/QlDepot/Quant/LTQuantLib/Tools/Hools/PreCommit/PreCommit.exe
is that part checked out in the working copy you're trying to commit
from? Because if you use those properties, the script to execute must be
already present.

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=3064547
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-09-13 18:52:53 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.