[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 23:38:46 CET

> 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.
>
>
> It works for me. Things to note in the command is that every
> path should be a full path (so "/usr/local/bin/svn" is
> necessary instead of "svn". Same case with /tmp/mylog). Also,
> the repsository argument to the svn log command should be a
> URL. $REPOS is only a path to the file system. Hence you need
> to prefix file:// to make it a file URL.

Yup, I was aware of the difference, URL for "svn log" and /dir/path/repo
for "svnlook log"
I bet the difference here is ... You're using a file:/// url, while I am
using an http:// url. I think the root cause of the problem for me is
still somewhere in the atomic lock, but you were able to work around it
by using a different URL that bypasses locking.

I don't have total confidence that your method is risk-free. But it
might be.

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