相当于svn中的perforce工作

发布于 2024-07-19 20:54:39 字数 48 浏览 3 评论 0原文

是否有与 svn 中的 perforce 作业等效的机制,用于对相关更改进行分组?

Is there an equivalent mechanism to a perforce job in svn, for grouping related changes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

红尘作伴 2024-07-26 20:54:40

要将相关更改分组,您可以使用更改列表

从我读到的有关工作的内容来看,它们有点像错误跟踪参考。

要在提交时关联错误引用,您必须在 SVN 之上实现一些东西(因为 SVN 没有集成的错误跟踪器),但您还必须说明您确实想要与哪个错误跟踪器集成 - 并且意味着技术会有所不同。 在所有情况下,bugtracker 关联都是在提交后挂钩中执行的。

例如,我使用 Mantis 作为错误跟踪器,当我提交更改时,如果我在日志消息中输入了一些魔术词(例如“Fixed Bug #1234”或“Fixed Mantis #1234”),则提交后hook 将使用curl 将该消息和提取的错误编号发送到Mantis URL,并自动解决该错误(并将日志消息文本添加到错误注释中)。

对于错误跟踪器,您可以替换任何其他 API 驱动的系统。

To group related changes, you'd use a changelist

From what I've read about jobs, they're kind of like bug tracking references.

To associate a bug reference when committing, you'd have to implement something on top of SVN (as SVN doesn't have an integrated bugtracker), but you'd also have to say which bugtracker you did want to integrate with - and that means the technique will be different. In all cases, the bugtracker-association is performed in the post-commit hook.

For example, I use Mantis as my bugtracker, when I commit a change, if I've entered some magic words in the log message (eg "Fixed Bug #1234", or "Fixed Mantis #1234") then the post-commit hook will send that message and the extracted bug number to a Mantis URL using curl and automatically resolve the bug (and also add the log message text to the bugnote).

For a bugtracker, you can substitute any other API-driven system.

爱格式化 2024-07-26 20:54:39

不,至少不是开箱即用的。 这种修订元数据必须存储在其他地方,例如 Trac 或构建在其之上的其他系统SVN 存储库。 遗憾的是,我还没有找到另一个 SCM 能够像 Perforce 一样出色地完成此任务。

No, at least, not out of the box. That kind of revision metadata has to be stored elsewhere, like Trac, or some other system that's built on top of the SVN repository. I've not found another SCM that does this quite so nicely as Perforce, sadly.

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