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

TortoiseSVN hooks parameters and error messages

From: Alexander Klenin <klenin_at_gmail.com>
Date: 2006-10-20 01:51:28 CEST

I have tried to use new TSVN commit hooks, and have several suggestions:

1) It seems that returning non-zero value from pre-commit hook cancels
the commit.
This is a good thing, however, when the hook does not output anything
to stderr, some kind of note in commit dialog would be nice.
Right now it simply displays empty dialog with "Finished!" caption.

2) A way to obtain a commit message text from the hook is needed, e.g.
as a "%MESSAGE%" substitution parameter.

3) Pressing "Cancel" in commit dialog while waiting for pre-commit
hook to finish does nothing. Closing the dialog works, but leaves the
hook running.
Probably both operations should also kill the hook process.

4) If pre-operation hook file is not found, operation proceeds anyway.
I am not sure if it is the right thing to do, probably at least a
warning would be prudent.

-- 
Alexander S. Klenin
Insight Experts Ltd.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Oct 20 01:51:35 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.