开发者

Substitute keyword value ONLY in subversion keyword substitution

开发者 https://www.devze.com 2023-03-22 07:28 出处:网络
In subversion keyword substitution, we can do that $Author$ replace to $Author: hkalex@gmail.com $ However, how can I just substitution the value ONLY.

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

精彩评论

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

关注公众号