Hooks from one WC applied to several WCs updated in one operation

45 views
Skip to first unread message

Sinus Pi

unread,
Sep 7, 2020, 9:09:31 AM9/7/20
to TortoiseSVN
When selecting several WCs to update in one operation - ctrl+click, ctrl+click, right-click, TSVN Update - I'm consistently seeing TSVN run the hooks from the WC I actually right-clicked to ALL of the WCs, if the other WCs don't have hooks defined. Worse yet, if the list of selected WCs contains folders that are not SVN-controlled WCs, then hooks are executed at the "common folder" level, with no way to know which WC they should really apply to.

The expected behaviour would be for TSVN to execute each WC's own hooks on its own folder.

Sinus Pi

unread,
Sep 7, 2020, 9:22:26 AM9/7/20
to TortoiseSVN
More interestingly, in some WC/non-WC/non-hooked-WC cases the hook is actually called with all of the affected WC folders as its "pathfile" argument, so - for example - my Pre-Update hook gets called with:

PATHFILE arg contents:
c:/my_work/project1
c:/my/work/temp_project_not_versioned
CWD arg:
c:/my_work

Stefan

unread,
Sep 8, 2020, 2:26:27 PM9/8/20
to TortoiseSVN
thanks for the report.
Fixed in r28961

panikc

unread,
Sep 18, 2020, 12:46:15 PM9/18/20
to TortoiseSVN
The changes from r28961 seem to cause Post-Update Hooks to no longer execute. Could you have a look at that?
Reply all
Reply to author
Forward
0 new messages