想要在源代码中嵌入唯一值以更改 SVN 存储库中的单个文件
Want to embed a unique value in source code for changes of a single file in an SVN repository
我正在构建时使用 SVN for source code control. I am already using SubWCRev (part of TortoiseSVN) 将唯一的 SVN 项目相关值嵌入到我的源代码中。
我现在需要生成并嵌入一个唯一值,该值仅在 SVN 项目中的某个文件被修改时才会发生变化。但如何实现这一点并不明显。由于 SVN 通常为整个项目保留 1 个版本号,而不是该项目中每个文件保留 1 个版本号。
SVN normally keeps 1 version number for the entire project rather than
1 version number per file in that project
每个文件在存储库中仍然具有更改时的修订版本。该数字用于 $Id
和 $Revision
.
的关键字替换
我正在构建时使用 SVN for source code control. I am already using SubWCRev (part of TortoiseSVN) 将唯一的 SVN 项目相关值嵌入到我的源代码中。
我现在需要生成并嵌入一个唯一值,该值仅在 SVN 项目中的某个文件被修改时才会发生变化。但如何实现这一点并不明显。由于 SVN 通常为整个项目保留 1 个版本号,而不是该项目中每个文件保留 1 个版本号。
SVN normally keeps 1 version number for the entire project rather than 1 version number per file in that project
每个文件在存储库中仍然具有更改时的修订版本。该数字用于 $Id
和 $Revision
.