开发者

How to set up a post commit hook that run "xterm -e unison &" after I commit?

How to set up 开发者_如何转开发a post commit hook in svn that run "xterm -e unison &" after I commit?

cheers

daniel


Not sure about your experience level, so here's a link to the Subversion book on how to implement hook scripts on the Subversion repository.

Basically, your going to want to use the post-commit.tmpl hook file, make a copy of it named post-commit and modify it to fit your needs. Make sure you have the appropriate permissions and ownership set right or your access method to the repository (Apache HTTD, svnserver, file) may cause the hook script to not be invoked.

You should be able to add the command you listed above to the hook script. If the hook script has problems executing that line, try using fully qualified paths to the executable and any arguments that should have it.

As side question, what are you hoping to accomplish with xterm -e unison & anyway?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜