在 Subversion 中更改修订号,即使文件在提交中没有更改 [英] Change Revision Number in Subversion, even if the File not change in the commit

查看:26
本文介绍了在 Subversion 中更改修订号,即使文件在提交中没有更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文件中使用 $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 lastest revision number.

这篇关于在 Subversion 中更改修订号,即使文件在提交中没有更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆