如何在每次提交后自动保存 SVN 修订号?
How to save SVN revision number automatically after each commit?
我需要在前端显示SVN提交修订号,例如build 1790
其中构建号应对应于 svn 的修订号。
是否可以在每次提交后 SVN 自动将修订号保存在文件中?
@Filburt 提出了将 svnversion 命令输出保存到文件的解决方案。
我是用webpack做的
plugins: [
new WebpackShellPlugin({
onBuildEnd: ['svnversion --no-newline > ./dist/svn-revision-number.txt']
})
]
我需要在前端显示SVN提交修订号,例如build 1790
其中构建号应对应于 svn 的修订号。
是否可以在每次提交后 SVN 自动将修订号保存在文件中?
@Filburt 提出了将 svnversion 命令输出保存到文件的解决方案。
我是用webpack做的
plugins: [
new WebpackShellPlugin({
onBuildEnd: ['svnversion --no-newline > ./dist/svn-revision-number.txt']
})
]