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

Arguments to pre-revprop-change-hook when running svnadmin setlog

From: Juanma Barranquero <jmbarranquero_at_wke.es>
Date: 2004-02-03 15:33:36 CET

I already mentioned the problem in a message on users@ about two months
ago, with no answer. That message contained two issues and the first one
was discussed, so I'm not claiming I was ignored, just that the second
issue went unnoticed :)

http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=3267

Summary: I want to do "svnadmin setlog" and change the log message for a
given revision, *running* the pre-revprop-change hook. I can't. The
problem is that I cannot get pre-revprop-change hooks to receive four
arguments (as the docs state) when invoked through "svnadmin setlog".
The hook runs fine via "svn propset svn:log --propset", but "svnadmin
setlog" does not send the username.

AFAICS svnadmin has no --no-auth-cache, --username or other
security-related arguments, so I don't see a way to force svnadmin to
send the third argument.

Yes, I know I can run "svnadmin --bypass-hooks setlog", but, what if I
*don't* want to bypass the hook but, in fact, execute it (so it records
the change in a log, for example)?

I'm running SVN 0.37.0 (client and server) on W2K/XP systems; no idea
whether that's a Windows-specific issue, though.

BTW, in the same thread Karl mildly agreed on the goodness of changing
the doc in hooks/pre-commit-hook.tmpl to acknowledge that there's no
harm in modifying non-versioned properties on the pre-commit hook:

http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=3276

Thanks,

                                                                Juanma

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 3 15:34:01 2004

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

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