Re: Retrieving commit information in post-commit hook & hook script s tandard output
From: si <sshnug.si_at_gmail.com>
Date: 2006-01-12 05:03:18 CET
Hi Tejinder,
> svn log --revision HEAD --verbose > CommitInfo.txt
Perhaps it's related to the "Tip" in:
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
Or it's also in <repos>/hooks/post-commit.tmpl
# The hook program typically does not inherit the environment of
so try /path/to/svn ... maybe that will sort you out.
> Also, I've noticed that any output sent to standard out (screen) by the
AFAIK You can use stderr in the pre-commit hook,
# If the hook program exits with success, the txn is committed; but
I believe the other pre-... hooks follow the same behaviour.
peace
---------------------------------------------------------------------
|
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.