更新时间:2023-02-12 19:45:59
我看了this 问题并获得了一些有用的信息.它并不完全重复,因为我正在使用 NetBeans
但想法是一样的.这是我的标题:
I looked at this question and got some useful information. It is not exactly duplicate because I am working with NetBeans
but the idea is the same. This is my header:
/*
* $LastChangedDate$
* $LastChangedRevision$
*/
然后我转到 Team > Subversion > Svn properties 并添加 svn:keywords
作为属性名称和 LastChangedDate LastChangedRevision
作为属性值.
Then I go to Team > Subversion > Svn properties and add svn:keywords
as property name and LastChangedDate LastChangedRevision
as property value.
当我从 NetBeans
提交时,它看起来像这样:
And when I commit from NetBeans
it looks like this:
/*
* $LastChangedDate: 2012-02-13 17:38:57 +0200 (Пн, 13 II 2012) $
* $LastChangedRevision: 27 $
*/
感谢大家的支持!我会接受我的答案,因为其他答案不包含 NetBeans
信息.尽管如此,我还是给了其他答案 +1
.
Thanks all for the support! I will accept my answer because other answers do not include the NetBeans
information. Nevertheless I give +1
to the other answers.