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

pre-commit on Windows: Minimum Size log-message?

From: Pieter Coucke <pietercoucke_at_hotmail.com>
Date: 2006-04-29 15:36:15 CEST


I'm trying to have a pre-commit hook on Windows (without the need of
installing other applications), that forces the users to have a minium
log-message size of a given number of characters.

I found one that checks if there is a log-message, but not if it has enough

Does anybody has one?
And is there somewhere a 'library' whith pre-commit-scripts for Windows?

Thanks a lot in advance,


PS: This should be in a SVN-newsgroup and not in a TortoiseSVN-newsgroup,
but I didn't find one... In case it exists or there is a better place for
aksing this: it would be great if you could point me out.
PS2: The one I found:
@echo off

set REPOS=%1
set TXN=%2

rem check for an empty log message
svnlook log "%REPOS%" -t "%TXN%" | findstr "." > nul
if %errorlevel% gtr 0 goto err
exit 0

echo You must provide a log message. 1>&2
exit 1

To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sat Apr 29 15:36:22 2006

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