subversion版本号问题

发布于 2024-08-23 01:18:36 字数 219 浏览 6 评论 0原文

我正在使用 SVN、Visual Studio 和 VS 的 VisualSVN 插件。 是否可以设置每个受控制的项目(例如文件)都有自己的顺序版本号,该版本号独立于其他受控制的项目。 比如我想让foo.txt获取版本号1、2、3、4等;我希望 bar.txt 获取版本号 1,2,3,4 等。 目前的情况对我来说是如何工作的,foo 得到“1”,然后如果我对 bar 进行更改并接下来检查它,它得到“2”,明白我的意思吗?

I am using SVN, Visual Studio, and VisualSVN plugin for VS.
Is it possible to set things up where each item under control, say a file, will have its own sequential version number, which is independent from other items under control.
For example, I want foo.txt to get version numbers 1, 2, 3, 4, etc.; and I want bar.txt to get version numbers 1,2,3,4, etc.
How things are workig for me currently, is that foo get "1", then if I make a change to bar and check it in next, it gets "2", see what I mean?

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

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

发布评论

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

评论(2

梦初启 2024-08-30 01:18:37

它们不是版本号。它们是修订号。它告诉您上次提交的修订内容在哪一点发生了更改。你所问的完全没有意义。如果你想做版本,那么你应该创建标签。

They aren't version numbers. They are revision numbers. It tells you at which point on the last commit did the content of the revision change. What you are asking is totally pointless. If you want to do versions, then you should create tags instead.

小嗷兮 2024-08-30 01:18:37

svn 具有单一的全局修订级别,并且各个项目具有稀疏的版本空间。

您需要使用触发器执行一些非常复杂的操作才能实现此结果,您可以将其存储在属性上。

svn has a single global revision level, and individual items have a sparse space of versions.

You would need to do something very complex with triggers to achieve this result, which you could store on a property.

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