开发者

Subversion for revision history and logging on Source codes

I have tr开发者_如何学编程ied to find some resource for Subversion how to make revision history and logging message on source code; This question might be a simple

We changed our CVS to Subversion. I am having a problem that how to make Revision history and log message to show on source codes. In CVS , we had used

/**
 * Revision:
 *  $Log$
 * 
 *
 *  $Id$
 */

to commit to CVS with log message. I have tried to put "$Revision$ and $Id$" on Source Code to Subversion; however, it does not work to update the Revision history on Source Code.

I used revision mark as follows for Subversion

/**
 * Revision:
 *  $Revision$
 * 
 *
 *  $Id$
 */

Do you have any idea how to add the revision history and comments to source code when the source code is committed ?

Thanks


You need to set the svn:keywords property on the files that you want the keywords replaced in, eg:

svn propset svn:keywords "Date Revision Author Id" *.c

(See here)


Subversion does not offer the 'Log' history as an expandable tag.

You do get Id, Date, Revision etc, but you need to set the 'svn properties' -- see 'svn propset' in the manual or help pages. Good frontends to SVN (as eg the Emacs mode) let you se t these directly as well avoiding the command-line.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜