开发者

Substitute keyword value ONLY in subversion keyword substitution

In subversion keyword substitution, we can do that

$Author$ replace to $Author: hkalex@gmail.com $

However, how can I just substitution the value ONLY.

What I want is

$Author$ replace to hkalex@gmai开发者_如何学Gol.com.


This is not possible using Subversion alone. The substitution is done like that to match not only historic CVS behavior, but to make it easy and obvious to see that the inserted text was done through keyword expansion and not just inserted manually.

If you're trying to do this as part of cleaning up files for, say, public release, you'll want to build a script to perform the replacement for you. A bit of grep and sed should do the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜