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

RE: Svn log inside a post-commit hook

From: Harvey, Edward <Edward.Harvey_at_patni.com>
Date: 2007-11-09 19:56:51 CET

>
> Have you tried svnlook log?
>
> Andy, 'svnlook log' only prints out the commit log message.
> It does not print all the details like 'svn log'. The author
> / commit time / changed files etc are all separate commands
> for svnlook.

Exactly right. What I'm looking for is the equivalent of "svn log
--verbose" and there is no "svnlook log --verbose"

 
> Edward, what you could do is to have a line like this in the
> post-commit hook:
>
> /usr/local/bin/svn log -r $REV "file://$REPOS" > /tmp/mylog

Actually, this is the reason for the post. If you look back at the
original post, you'll see "But when I try to write 'svn log' into a
post-commit hook, it appears it can't perform that operation."

Inside a post-commit hook, "svn log" just exits with no output,
presumably because svn server is still in the middle of an atomic
operation. So "svn" can't do anything inside the post-commit hook, but
"svnlook" still works.

That being said, this is what I settled on as an alternative:

I see that svnlook can do a whole bunch of stuff.
        svnlook author
        svnlook date
        svnlook log
And so on. If I run svnlook several times, storing the output of each,
I can gather all the info that "svn log --verbose" normally would
display. And just assemble it myself.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 9 19:59:14 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.