[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: Zoom Quiet <zoom.quiet_at_gmail.com>
Date: 2006-01-08 12:49:18 CET

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:"""
> #!/usr/local/bin/python
> 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!
## 面朝开源,我心自由!
Received on Sun Jan 8 12:51:04 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.