subversion版本号问题
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它们不是版本号。它们是修订号。它告诉您上次提交的修订内容在哪一点发生了更改。你所问的完全没有意义。如果你想做版本,那么你应该创建标签。
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.
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.