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

Problems in 1.8 with Hook Scripts

From: Alexander Haley <ahaley_at_meditech.com>
Date: Tue, 18 Jun 2013 15:27:47 -0400

I am encountering two problems (which I believe to be opposite sides of the
same coin) with client defined hook scripts as of the 1.8.0 release.

*FIRST *- during the upgrade, my previously defined hooks were corrupted.
 I believe this ~might~ be due to the new field choice "Always execute the
script". The old registry key did not possess a placeholder or delimiter
for this field , and as a consequence when the new 1.8.0 tortoise unpacked
the registry hooks key, the fields were not aligned properly.

This lead to the settings dialog showing the hooks in a bizzare visual
format: attachement one.

*SECOND *- once I erased the bogus hooks , and recreated the hooks as they
should exist - I am finding they disappear unpredictably. I believe again
this is tied to the 'Always' option NOT defining an empty delimiter.

Examining my Registry key: HKEY_CURRENT_USER\Software\TortoiseSVN\hooks
and unpacking the newlines - just after defining a new hook, I see:
(bolding I added of course)

*pre_update_hook*
C:\SVNFocus
C:\SVNFocus\Utilities\Magic.exe MATTortoiseHandler.mps "{Pre-Update}"
true
show
*post_update_hook*
C:\SVNFocus
C:\SVNFocus\Utilities\Magic.exe MATTortoiseHandler.mps "{Post-Update}"
true
show

However, returning to the hooks dialog, and I do not see the *
post_update_hook* defined. BUT , if I then check off the "Always" option
for the pre-update hook, Isee:

*pre_update_hook*
C:\SVNFocus
C:\SVNFocus\Utilities\Magic.exe MATTortoiseHandler.mps "{Pre-Update}"
true
hide
enforce

Notice the new 'enforce' option - and notice that the post_update_hook is
entirely removed. I suspect an investigation into the registry
import/export code for the client hooks would turn up this bug readily
enough.

For what it is worth, my machine is a WinXP SP3 , 32bit.

Thanks,
Alexander

-- 
Alexander Haley, Computer Scientist, 781-774-5156
Medical Information Technology, Inc.
Mailstop: F3N338W, MEDITECH Circle, Westwood, MA 02090
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3058435
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

attach-one.png
Received on 2013-06-18 21:35:17 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.