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

RE: hook script error messages

From: Damian Powell <DamianP_at_cgp.co.uk>
Date: 2004-06-04 13:17:26 CEST

> "Falk, Timo" <Falk@neumag.de> writes:
>
> REM SVN pre-commit hook detects an empty log message and abort commit
> REM by Marc van Kalmthout 1-6-2004
> REM
> REM Output to stderr by Timo Falk 04-06-2004
>
> setlocal
> set REPOS=%1
> set TXN=%2
>
> pushd D:\svn
> svnlook log %REPOS% -t%TXN%|findstr .
> if errorlevel 1 goto refuse
>
> popd
> endlocal
> exit 0
>
> :refuse
> echo Empty log message not allowed. Commit aborted! 1>&2
> endlocal
> exit 1

Shouldn't there be a "popd" between the "endlocal" and "exit 1" lines?

-------------
Damian Powell
Senior Software Engineer, CGP Associates Ltd.
[e] damian.powell@cgp.co.uk
[w] http://www.cgp.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 4 13:19:09 2004

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.