问题描述
我在文件中使用 $Rev:$ 来获取修订号,问题是该文件没有太大变化,因此编号不会自动更新.任何帮助如何做到这一点?
I use $Rev:$ in a file to have the revision number, the problem is that the file does not change a lot so the number is not automatically updated. Any help in how to do this?
推荐答案
$Rev$ 不会按您预期的方式工作.
$Rev$ won't work the way you expect it.
如果你使用命令行颠覆,你有 svnversion 输出最新版本.
If you're using command-line subversion you have svnversion that outputs the latest revision.
使用tortoisesvn,它是http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html
With tortoisesvn, it's http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html
无论如何,您应该更新您的构建脚本,以便它自动合并最新的修订号.
Anyway, you should update your build script, so that it merges automatically the lastestrevision number.
这篇关于在 Subversion 中更改修订号,即使文件在提交中没有更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!