SVN 中是否可以使用 CVS 风格的结账挂钩?
我们正在从 CVS 迁移到 SVN,据我所知,SVN 没有结账钩子。 在 CVS 中,在模块文件中定义模块时,使用 -o
选项定义检出后操作。 这种行为在 SVN 中可能吗?
We are migrating from CVS to SVN and as far as I can see, SVN does not have checkout hooks. In CVS the post checkout operation is defined using the -o
option when defining modules in the module file. Is this behavior possible in SVN?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请澄清:您想使用签出挂钩做什么?
我从来没有真正成为过 CVS 用户,所以我不知道通过使用签出挂钩解决(想要......)哪些常见用例(实际上我还不知道它们)。
SVN 提供预提交和提交后钩子(以及其他一些钩子),这些钩子应该能够在源上的每次更改时执行人们想要完成的任何操作。
如果您需要对工作副本进行一些自动的签出后处理,那么除了编写脚本并提醒客户端执行它们之外,您没有太多其他选择。
Please clarify: What would you want to use check-out hooks for?
I've never really been a CVS user, so I do not know what common use-cases the solved (wanted to...) by using check-out hooks (actually I haven't known them).
SVN provides pre-commit and post-commit hooks (among some others), which should be able to do whatever one wants to be done per-change on the source.
If you need some automatic post-check-out processing on the working copy, you'll not have much other alternatives then writing a script, and remind the clients to execute them.
可能“替代品”指的是“钩子”而不是 SVN,但目前,我看到了比 SVN 更好的系统(例如,Mercurial、Git)......即使人们不遵循 Linus Torvalds 看到 'Subversion 是有史以来最毫无意义的项目'..
Probably "alternatives" refers to "hooks" and not to SVN, but currently, I see a lot better systems to migrate to than SVN (e.g., Mercurial, Git)... even if one does not follow Linus Torvalds seeing 'Subversion as being the most pointless project ever started'..