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

Client Pre-commit hook

From: Ian Hotchkiss <ian.hotchkiss_at_lloydsbanking.com>
Date: Thu, 12 Sep 2013 02:24:41 -0700 (PDT)

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.

Note.

 I am using TortoiseSVN 1.8.1 with SVN 1.7.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-09-12 12:01:30 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.