问题
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