On Jan 8, 2006, at 12:49, Zoom Quiet wrote:
> 2006/1/8, Zoom Quiet <zoom.quiet@gmail.com>:
>> i'm chinese Python developer, usage SVN in us team.
>> upgrade svn 1.3.0 just now. but the post-commit can not running?!
>> this is my way:
>> creat SVN repo::
>> svnadmin create --fs-type fsfs /usr/local/svnrepos/pyblosxom
>> running svnserver::
>> svnserve -d -r /usr/local/svnrepos/pyblosxom
>> so so edit /usr/local/svnrepos/pyblosxom/hooks/post-commit
>> just open one line::"""
>> ..
>> #log-commit.py --repository "$REPOS" --revision "$REV"
>> post-commit.py "$REPOS" "$REV"
>> """
> base SVN faq i fixed one bug:
> env - ./post-commit /var/lib/svn-repos 1234
> /var/lib/svn-repos 1234
> post-commit.py: not found
>
> so so the /usr/local/svnrepos/pyblosxom/hooks/post-commit
> just usage::"""
> ...
> ./post-commit.py "$REPOS" "$REV"
> """
> but also nothing happen, when i ci new version code into my SVN repo.
> nothing no recoder into post-commit.log , so i can not add any support
> in the post-commit.py...
The hooks run with NO environment, not even a PATH, not even the
notion of what the current directory is. There is no such thing as
"./" in a hook. You must specify the entire absolute path. So, your
post-commit should contain this:
#!/bin/sh
REPOS="$1"
REV="$2"
/usr/local/svnrepos/pyblosxom/hooks/post-commit.py
And, of course, post-commit.py will need 755 permissions, but I
imagine you've done that already.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 8 13:35:39 2006