Subversion 中的远程提交挂钩可能吗?
我当前的设置如下:
- 我们有一个 Linux samba 共享,其中包含所有存储库文件夹(其中包含 hooks 文件夹等)
- 所有开发人员都将共享映射为网络驱动器,并导入到本地目录(通常C:\Server\RepositoryName) 他们处理文件的地方。
- 所有访问驱动器的机器(不幸的是)都运行 Windows。
我的目标是在 Linux 服务器上建立一个钩子,用于检测何时进行提交、哪个项目、修订号、提交的开发人员的姓名等。我查看了钩子文件,但它们似乎是由客户运行的。有没有办法监控svn的变化并从Linux服务器收集相关信息?
my current setup is as follows:
- We have a Linux samba share that contains all the repository folders (with the hooks folder inside, amongst the others)
- All the developers have the share mapped as a network drive, and import to a local directory (normally C:\Server\RepositoryName) where they work on their files.
- All the machines accessing the drive (unfortunately) run windows.
What I'm aiming to do is to have a hook on the Linux server that detects when a commit has been made, by which project, the revision number, the name of the developer who committed, etc. I looked into the hooks files, but they seem to be ran by the client. Is there a way to monitor svn changes and collect the relevant information from the Linux server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所有的钩子都是由svnserve执行的。检查你的钩子脚本、svnserve 配置和 http://subversion.apache.org/faq.html #hook-调试
All the hooks are executed by svnserve. Check your hook scripts, svnserve configuration and http://subversion.apache.org/faq.html#hook-debugging