svn keyword replacement: is it possble to replace $Rev$ with only the revision number

与世无争的帅哥 提交于 2019-12-11 02:49:24

问题


In an html template file I would like to append the revision number to links to external css and javascript files. Pretty similar to: IE6 Javascript problems with $Revision$ in the filename

But as said there, this can cause problems, at least in IE6.

Rather then replace (or extend) the keyword $Rev$ to $Rev: 123$, I would prefer 123 as a result, making a link ….css?$Rev$ to ….css?123 instead of ….css?$Rev: 123$.

Is there any template somewhere for the keyword replacement that could be modified?


回答1:


No, you can't change the output format of a keyword. With Subversion 1.8 and older client, the keyword output format is always $keyword: value $.

See SVNBook | Keyword Substitution.



来源:https://stackoverflow.com/questions/20004339/svn-keyword-replacement-is-it-possble-to-replace-rev-with-only-the-revision-n

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!