Hook script issues.

23 views
Skip to first unread message

mlpor...@gmail.com

unread,
Aug 7, 2019, 12:09:04 PM8/7/19
to TortoiseSVN
I am running 64-bit TortoiseSVN on Windows (V1.12.1 Build 28628). I need to be able to intercept a commit, check the files that are being committed, modify them if needed and then update the commit message to reflect the changes.

I first tried using a pre-commit hook script, but the two files referenced in the data passed to the hook script don't exist when the executable tries to read them.

I next tried a check-commit hook and the files are now present (or at least most of the time they are), but if I change the contents of the message file the modified contents don't appear in the log.

The help file says that the start-commit hook can be used when the hook modifies a versioned file or the commit message, but it also says that it doesn't have a full list of the objects selected for commit.

Is there a way to get a full list of the files being committed AND be able to modify the commit message and files?

Mike...

mlpor...@gmail.com

unread,
Aug 7, 2019, 12:24:35 PM8/7/19
to TortoiseSVN
A further comment, I tried the start-commit hook but it also doesn't work. The modified data that I write to the commit message file does not appear in the commit message field when the commit dialog opens, and it is overwritten by what the user types in.

Is there a way to accomplish what I want to do?

Mike...

mlpor...@gmail.com

unread,
Aug 7, 2019, 5:13:40 PM8/7/19
to TortoiseSVN
Ok, I found the problem... The checkbox to wait for the script to finish wasn't checked. ARRGH...

Mike...

Reply all
Reply to author
Forward
0 new messages