SVN 中是否可以使用 CVS 风格的结账挂钩?

发布于 2024-07-11 08:35:33 字数 109 浏览 2 评论 0原文

我们正在从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

两个我 2024-07-18 08:35:33

请澄清:您想使用签出挂钩做什么?

我从来没有真正成为过 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.

奢华的一滴泪 2024-07-18 08:35:33

可能“替代品”指的是“钩子”而不是 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'..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文