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

Re: Retrieving commit information in post-commit hook & hook script s tandard output

From: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2006-01-12 04:57:06 CET

Uppal, Tejinder wrote:
> Hi All,
>
> I tried running the following command within the post-commit hook.
>
>
> svn log --revision HEAD --verbose > CommitInfo.txt
>
> The commit occurs but I don't see the CommitInfo output file.
>
> Also, I've noticed that any output sent to standard out (screen) by the
> hooks is not displayed to the user. Is there any way to make it possible to
> write to the standard output?

'svn' is for clients. Try using 'svnlook' and the parameters that are
passed to the post-commit hook. Remember that no environment settings
are available in the hooks, so you must provide the full path to everything.

/path/to/svnlook log $1 -r $2 > /path/to/commitinfo.txt

No output from the hook script is sent back to the user. The
post-commit is usually used for sending emails or exporting committed
files to another location such as a web server, for example.

-- 
Sly
This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 12 05:00:14 2006

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.