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

Re: How to prevent empty log messages?

From: eg <egoots_at_gmail.com>
Date: Mon, 16 Jun 2008 12:34:06 -0700

prakash tiwary wrote:
> Mind showing me what the complete pre-commit.tmpl would look like?
> Something that would work on windows? Thanks.
A working pre-commit.bat batch file (without using python) could be the
following (you just need to adjust the path):

@echo on
set REPOS=%1
set TXN=%2
set SVN_DIR=C:\Program Files\Subversion
set SVNLOOK="%SVN_DIR%\bin\svnlook.exe"
%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_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-16 21:47:04 CEST

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

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