SVN 中的标签数量是否有实际限制?

发布于 2024-09-30 03:20:55 字数 264 浏览 2 评论 0原文

这是 SourceSafe 的类似问题。我们有一个 SVN 存储库,存储众多项目的源代码。在这些项目中,大约有 25 个项目是每天由专门的每日构建人员构建的。一旦每日构建开始,它就会用自己的名称标记源(类似于“项目 N 版本 XYZ 的构建”,Z 随着项目 N 的每次连续构建而增加)。

我们在使用这种方案时会遇到 SVN 的任何实际限制吗? SVN 存储库中的标签数量是否有实际限制?

Here's a similar question for SourceSafe. We have a single SVN repository storing sources of numerous projects. Among those projects something like 25 are built every day each by a dedicated daily build. Once daily build starts it tags the sources with its own name (something like "Build of Project N version X.Y.Z", Z increases with every successive build of project N).

Are there any practical limitations in SVN we can run into with such scheme? Is there a practical limit on the number of tags in SVN repository?

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

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

发布评论

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

评论(4

找个人就嫁了吧 2024-10-07 03:20:55

实际上,如果我尝试在存储库浏览器中查看标签列表以查找 Project_v2.0 标签,我个人会觉得非常烦人,但我必须滚动浏览 2000 个每日构建标签看到它。因此,我建议将它们保存在单独的子目录中:/tags/daily/build_0001

On a practical basis, I would personally find it very annoying if I tried to view the list of tags in my repository browser to find the Project_v2.0 tag, but I had to scroll through 2000 daily build tags to see it. So I would suggest keeping these in a separate subdirectory: /tags/daily/build_0001

困倦 2024-10-07 03:20:55

不,标签在 SVN 中非常便宜,因为它们只是一个命名的修订版。

No, tags are very cheap in SVN since they are just a named revision.

绮烟 2024-10-07 03:20:55

SVN 存储库中的标签数量是否有实际限制?

我可以想象,在使用 25 个每日标签几年后,仅仅浏览如此多的标签就会变得很慢,但您可以通过分层保存它们来克服这个问题。另外,我不会将它们放在 tags 下,或者至少不会直接放在下面,以免它们使文件夹混乱并难以找到版本等。

否则我不知道实际限制。标记的核心是制作子树的惰性副本,据我所知,在内部,每个签入的修订版本基本上都是之前版本的惰性副本,因此 SVN 对每次签入都使用该操作。我严重怀疑你能达到的极限。

Is there a practical limit on the number of tags in SVN repository?

I can imagine that mere browsing so many tags becomes slow after a few years of 25 daily tags, but you could overcome that by saving them hierarchically. Also, I wouldn't put them under tags, or at least not directly, lest they clutter the the folder and make it hard to find releases and such.

Otherwise I'm not aware of a practical limit. Tagging, at its heart, is making a lazy copy of a subtree and AFAIK, internally, each checked in revision basically is a lazy copy of the one before, so SVN uses that operation for every checkin. I'd seriously doubt that there's a limit you can reach.

美人迟暮 2024-10-07 03:20:55

我不相信是这样。但是每次进行每日构建时创建一个新标签有什么意义呢?如果您需要,您可以按日期提取来源......

I don't believe so. But what's the point of making a new tag every time you do a daily build? If you needed to you could just pull the sources by date...

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