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

Re: Pre-commit user friendly message

From: Alan Jay Weiner <alan_at_ajw.com>
Date: 2004-08-02 04:56:25 CEST

>>I'm trying to echo a user friendly error message which the user
>>can read when the pre-commit.bat hook script fires with no success.
>>
>>Any ideas?
>
>Please note that STDOUT is ignored by Subversion when the hook
>scripts run. Try sending your error messages to STDERR.

Since ".bat" was mentioned, I presume this is on Windows...

you can redirect stdout to stderr by "1>&2"

my pre-revprop-change.bat looks like this:

set REPOS=%1
set REV=%2
set USER=%3
set PROPNAME=%4

if "%PROPNAME%"=="svn:log" (
        echo You are not allowed to change svn:log property! 1>&2
        set returnval=1
) else (
        set returnval=0
)

exit %returnval%

- Al -

-- 
--  Alan Weiner  --  alan_at_ajw.com  --  http://www.ajw.com
Palm OS Certified Developer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 2 04:57:12 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.