TortoiseSVN/Subversion 修订号...备用程序?
我一周前问了这个问题(如下),并得到了我正在寻找的答案,但是,如果我希望配置管理程序仅在编辑文件后将文件升级到下一个版本(按一个单元),那么什么程序可以工作。我知道颠覆不会那样做,但是什么程序会这样做呢?
我对 Subversion/TortoiseSVN 相当陌生,我想知道是否有一种方法可以防止 Subversion 跳过文件的修订号,以便我可以根据文件的修订号跟踪文件更改的时间:
示例:我有A.txt、B.txt 和 C.txt 修订版 1:(将文件添加到存储库) A.txt :1 B.txt :1 C.txt :1
修订版 2:(编辑的文件:A.txt 和 B. txt) A.txt :2 B.txt :2 C.txt :1
修订版 3: (编辑文件:A.txt 和 C.txt) A.txt :3 B.txt :2 C.txt :3 <- --------我希望这个“3”成为 2****
** 我对 C.txt 进行了一项更改,我希望修订号增加一倍(不是跳过 2 并直接进入3)。我理解为什么 Subversion/TortoiseSVN 这样做以及如何遵循它,但是对于我正在从事的项目,我想以不同的方式做到这一点。我到处都读过,似乎找不到其他人有这个问题。有什么建议吗?
谢谢!
I asked this question (below) a week ago and got the answer I was looking for, BUT, What program would work if I want the configuration management program to up a file to the next revision (by one unit) ONLY if it is edited. I understand the subversion does not do it that way, BUT what program will?
I am fairly new to Subversion/TortoiseSVN and I want to know if there is a way to prevent Subversion from skipping revision numbers on files so that I can track the amount of time a file is changed based on it's revision number:
Example: I have A.txt, B.txt, and C.txt Revision 1: (added the files to repository) A.txt :1 B.txt :1 C.txt :1
Revision 2: (edited files: A.txt and B.txt) A.txt :2 B.txt :2 C.txt :1
Revision 3: (edited files: A.txt and C.txt) A.txt :3 B.txt :2 C.txt :3 <---------I want this "3" to be a 2****
** I made one change to C.txt and I want the revision number to increase one time (not skip 2 and go straight to 3). I understand why Subversion/TortoiseSVN does it this way and how to follow it, but for the project I am working on, I want to do this a different way. I have read everywhere and can't seem to find anyone else with this issue. Any suggestions?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
例如,CVS 单独跟踪每个文件的版本号。因此,如果您更改文件 B 并将更改提交到存储库,文件 A 和 C 根本不会受到影响。
不过版本系统与 Subversion 有点不同。 SVN 使用从 1 到 N 的数字,而 CVS 编号从 1.1 开始,第二个数字随着每次提交而递增(变成 1.2、1.3 等)。
For example, CVS keeps track of version numbers individually for every single file. So if you change file B and commit your changes to the repository, file A and C are not affected at all.
The version system is a bit different from Subversion though. Where SVN uses numbers from 1 to N, CVS numbers starts at 1.1, and the second digit is incremented with each commit (becoming 1.2, 1.3, and so on).
如果我理解你的问题,你想逐个文件地跟踪修订号。这是一个相当过时的概念,这就是为什么更现代的 SCM 软件包不支持它。另一方面,这就是CVS 的工作方式,所以如果这就是您认为需要的,那么就去看看吧。
If I understand your question, you want to track revision numbers on a file-by-file basis. That's a fairly outmoded concept, which is why more modern SCM packages don't support it. On the other hand, that is the way that CVS works, so if that's what you feel you need, then go have a look at it.