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

post-update hook not executed after checkout?

From: Anders Gammelgaard <ang_at_d-i-s.dk>
Date: Fri, 5 Sep 2014 12:22:58 +0000

In http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html#tsvn-dug-settings-hooks the following is stated about Post-update hooks:

"Called after the update, switch or checkout finishes (whether successful or not)."

I want to exploit this excellent feature. Using right-click-on-svn-controlled-folder > TortoiseSVN > Properties > New... > Local Hooks, I have created a hook that creates a few files. As "Hook Type" I select "Post-Update Hook" and as command I choose "echo hello" (just an example, the real script is more complex).

The problem: The script is not executed when "checkout finishes" (see above) - only after ordinary update.

Doing the checkout first, and then an update right after, causes the script to run. So the problem is manageable. It would be nice, however, if it also ran right after checkout.

For the record:
After configuration of the tsvn:postupdatehook property, if I choose right-click-on-svn-controlled-folder > TortoiseSVN > Properties, mark the new property and say Edit... > Advanced, the following info about the hook is displayed:
post_update_hook
echo hello
false
show

Version info:
TortoiseSVN 1.8.8, Build 25755 - 64 Bit , 2014/08/10 14:44:06
Subversion 1.8.10, -release
apr 1.5.1
apr-util 1.5.3
serf 1.3.7
OpenSSL 1.0.1i 6 Aug 2014
zlib 1.2.8

BTW: Excellent tool!

Med venlig hilsen/Best regards
Anders Gammelgaard

Dansk IngeniørService A/S
Ørstedsvej 10, Stilling
DK-8660 Skanderborg

Tel.: +45 87 38 74 50
Mob.: +45 29 68 46 82
Mail: ang_at_d-i-s.dk<mailto:ang_at_d-i-s.dk>
Web: www.d-i-s.dk<http://www.d-i-s.dk>

[cid:image001.png_at_01CFC914.E42395E0]

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

image001.png
Received on 2014-09-05 14:47:31 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.