Hook script in project properties not executed

38 views
Skip to first unread message

Jörg Vehlow

unread,
Jun 29, 2018, 2:20:29 AM6/29/18
to TortoiseSVN
Hi,

I'm experimenting with hook scripts stored in project properties. I have added some script to the properties of folder /X in svn.
I then checked out the folder to d:\X_wc. If I run update/commit on this folder, the scripts are not executed. If I run i run update/commit on d:\X_wc\some_other_folder, they are executed.

Is this the correct behavior? I would expect the scripts to also be executed when i update/commit d:\X_wc...

Thanks,
Jörg

Jörg Vehlow

unread,
Jul 2, 2018, 4:32:18 AM7/2/18
to torto...@googlegroups.com
Something else I saw today in current version of TortoiseSVN (1.10.0, Build 28176 - 64 Bit):

The "Run hook script" button looks a bit out of place. Is this by accident or was it planed to look this way?

Stefan

unread,
Jul 2, 2018, 2:10:38 PM7/2/18
to TortoiseSVN


On Friday, June 29, 2018 at 8:20:29 AM UTC+2, Jörg Vehlow wrote:
Hi,

I'm experimenting with hook scripts stored in project properties. I have added some script to the properties of folder /X in svn.

did you commit the properties?

 
I then checked out the folder to d:\X_wc. If I run update/commit on this folder, the scripts are not executed. If I run i run update/commit on d:\X_wc\some_other_folder, they are executed.


if you committed the properties then when you update the properties will also be in the new working copy.
If the hook scripts are not executed after the first update, then it must be a problem on how you set up the hook scripts:
check the paths to the script(s) and the parameters.

Stefan

Jörg Vehlow

unread,
Jul 3, 2018, 2:05:03 AM7/3/18
to TortoiseSVN
The properties are committed and they work on EVERY folder down the hierarchy (d:\X_wc\a, d:\X_wc\b, d:\X_wc\a\c, ..., but not on d:\X_wc) , except the "main" checkout folder. Since I don't even get the "Approve or reject client-side hook script" message, I am sure, that the problem is not in my scripts.

Stefan

unread,
Jul 3, 2018, 1:18:29 PM7/3/18
to TortoiseSVN


On Tuesday, July 3, 2018 at 8:05:03 AM UTC+2, Jörg Vehlow wrote:
The properties are committed and they work on EVERY folder down the hierarchy (d:\X_wc\a, d:\X_wc\b, d:\X_wc\a\c, ..., but not on d:\X_wc) , except the "main" checkout folder. Since I don't even get the "Approve or reject client-side hook script" message, I am sure, that the problem is not in my scripts.

But did you commit the property changes?
Are the properties set on the wc where it doesn't work?

Jörg Vehlow

unread,
Jul 4, 2018, 4:09:41 AM7/4/18
to TortoiseSVN
Yes of course I did commit them, just in case it had something to do with it...

I am working with just ONE working copy. If the properties were not registered at all, I would never see the Approve-dialog. I see it on every folder of the working copy, except the root folder of the same working copy.
Reply all
Reply to author
Forward
0 new messages