svn关键字替换:是否可以仅用修订号替换$ Rev $ [英] svn keyword replacement: is it possble to replace $Rev$ with only the revision number

查看:126
本文介绍了svn关键字替换:是否可以仅用修订号替换$ Rev $的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在html模板文件中,我想将修订号附加到外部CSS和javascript文件的链接.非常类似于:文件名中有$ Revision $的IE6 Javascript问题

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

但是正如那里所说的那样,这至少在IE6中可能会引起问题.

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

而不是将关键字$Rev$替换(或扩展)为$Rev: 123$,因此,我希望使用123,从而将链接….css?$Rev$链接到….css?123而不是….css?$Rev: 123$.

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?

推荐答案

否,您不能更改关键字的输出格式.对于Subversion 1.8和更旧的客户端,关键字输出格式始终为$keyword: value $.

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 $.

请参见 SVNBook |关键字替换.

这篇关于svn关键字替换:是否可以仅用修订号替换$ Rev $的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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