0

I did not write this code. This code was written by client but now at the client, nobody knows about it. It's legacy code. Those who wrote it already left.

Here is the line I don't understand:

push(@versions, __PACKAGE__ . ' ($Revision: 37638 $)');

Whenever I make any change to this module and commit the code to SVN, the revision number is automatically updated. I don't understand how this happens. Can someone please help me to figure it out?

4

1 回答 1

4

这是使用SubVersion 关键字替换

Subversion 能够将关键字(关于版本化文件的有用的动态信息片段)替换为文件本身的内容。关键字通常提供有关对文件进行的最后修改的信息。因为每次文件更改时这些信息都会发生变化,更重要的是,文件更改后,除了版本控制系统之外的任何进程都很难保持数据完全最新。留给人类作者,信息将不可避免地变得陈旧。

看起来您正在使用Revision关键字:

修订

此关键字描述了此文件在存储库中更改的最后一个已知版本,类似于 $Revision: 144 $。它也可以指定为 LastChangedRevision 或 Rev

于 2013-08-29T10:44:55.193 回答