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

Re: passing cmd-line params from svn commit to post-commit script

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-06-28 13:13:29 CEST

On Jun 28, 2007, at 01:13, Richard Bos wrote:

> On Wed, Jun 27, 2007 at 04:24:57PM -0500, Ryan Schmidt wrote:
>
>> On Jun 27, 2007, at 14:08, Richard Bos wrote:
>>
>>> Op Wednesday 27 June 2007 11:15:17 schreef Markus Kuhn:
>>>
>>>> Is there any way that I can pass from the "svn commit" command
>>>> line some
>>>> command-line arguments to the post-commit hook script? (This
>>>> would be
>>>> extremely useful for some types of workflows involving post-commit
>>>> activity.)
>>>
>>> You retrieve values from the log message. It's ugly as the log
>>> message will
>>> always show the variable=value pair.
>>>
>>> The post-commit hook, can retrieve the variable with:
>>> svnlook log -r "$REV" "$REPOS" | grep -q VARIABLE
>>
>> That's a good idea... you could even take the variable=value pair out
>> of the log message in the post-commit hook after it's been extracted,
>> to keep the log cleaner.
>
> Is that possible indeed. How can that be done?

Look at:

svnadmin help setlog

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 28 13:13:37 2007

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.