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

Re: [svn 1.3.0] post-commit can not running?

From: Richard Musil <richard.musil_at_gmail.com>
Date: 2006-01-08 13:10:22 CET

Just to bump this issue:
I have been facing similar problem with post-commit hook (in shell
script). Every method I tried to test it succeeded, but when it should
run from apache process it did not. I was using apache 2.0.55 and SVN
1.2.3 (both hand compiled).
I presume there should be a lot of complains if this feature is broken,
so I expect there is problem somewhere else (apache maybe?, or my linux
distro which is SUSE 9.3).


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...
> any suggest?
>>in post-commit.py just want to see what import by SVN:"""
>>import sys,os,time
>>def usage():
>> print "Usage: " + sys.argv[0] + " REPOS REV\n"
>> sys.exit(0)
>>if __name__ == '__main__':
>> exp = "%s"%time.strftime("%y-%m-%d %H:%M:%S", time.localtime())
>> exp+= str(sys.argv)
>> exp+= "\t\n"
>> open("post-commit.log","a+").write(exp)
>> if len(sys.argv) != 3:
>> usage()
>>straight try:
>># python post-commit.py "/path/some" "2323"
>>is work good;
>>but when i svn ci anything into repo.nothing happen!
>>that post-commit.log can not recoder onthing,
>>i think that post-commit not call....
>>i want to usage post-commit to ctrl. auto export some code to some dir
>>for suto build,
>>so so what suggest?
>>thanx for all!
>># Time is unimportant, only life important!
>>## 面朝开源,我心自由!
> --
> # Time is unimportant, only life important!
> ## 面朝开源,我心自由!

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:13:06 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.