SVN 中的标签数量是否有实际限制?
这是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
实际上,如果我尝试在存储库浏览器中查看标签列表以查找
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
不,标签在 SVN 中非常便宜,因为它们只是一个命名的修订版。
No, tags are very cheap in SVN since they are just a named revision.
我可以想象,在使用 25 个每日标签几年后,仅仅浏览如此多的标签就会变得很慢,但您可以通过分层保存它们来克服这个问题。另外,我不会将它们放在
tags
下,或者至少不会直接放在下面,以免它们使文件夹混乱并难以找到版本等。否则我不知道实际限制。标记的核心是制作子树的惰性副本,据我所知,在内部,每个签入的修订版本基本上都是之前版本的惰性副本,因此 SVN 对每次签入都使用该操作。我严重怀疑你能达到的极限。
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.
我不相信是这样。但是每次进行每日构建时创建一个新标签有什么意义呢?如果您需要,您可以按日期提取来源......
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...