[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: Ian Hotchkiss <ian.hotchkiss_at_lloydsbanking.com>
Date: Thu, 19 Sep 2013 09:12:34 +0100

The Script was already stored at this point. Does the script need to reside in a different tree for this to work?

-----Original Message-----
From: Stefan Küng [mailto:tortoisesvn_at_gmail.com]
Sent: 13 September 2013 17:52
To: users_at_tortoisesvn.tigris.org
Subject: Re: Client Pre-commit hook

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].
Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500.
Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 327000.  Telephone: 020 7626 1500.
Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555.
Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372.
Lloyds TSB Bank plc, Lloyds TSB Scotland plc, Bank of Scotland plc and Cheltenham & Gloucester plc are authorised and regulated by the Financial Services Authority.
Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc.
HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 218813.  Telephone: 020 7626 1500.
Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 95000. Telephone: 0131 225 4555
This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it  (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments.
Telephone calls may be monitored or recorded.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3064859
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-09-19 10:12:44 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.