简体   繁体   English

我提交后,如何设置运行“ xterm -e unison&”的发布后提交钩子?

[英]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? 提交后,如何在svn中设置运行“ xterm -e统一&”的发布后提交钩子?

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. 不确定您的经验水平,因此这是有关如何在Subversion存储库上实现挂钩脚本的Subversion书籍的链接

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. 基本上,您将要使用post-commit.tmpl挂钩文件,为其复制一个名为post-commit文件,然后对其post-commit修改以适合您的需求。 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. 确保您具有适当的权限和所有权设置权,否则您对存储库(Apache HTTD,svnserver,文件)的访问方法可能会导致挂钩脚本无法被调用。

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? 附带的问题是,您希望使用xterm -e unison &来完成什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM