If you want to substitute variable with Subversion data, you must create a file with the Subversion's variable and lauch a command to told to Subversion to replace them.
Possible variable are:
Date
- This keyword describes the last time the file was known to have been changed in the repository, and is of the form
$Date: 2006-07-22 21:42:37 -0700 (Sat, 22 Jul 2006) $
. It may also be specified asLastChangedDate
. Revision
- This keyword describes the last known revision in which this file changed in the repository, and looks something like
$Revision: 144 $
. It may also be specified asLastChangedRevision
orRev
. Author
- This keyword describes the last known user to change this file in the repository, and looks something like
$Author: harry $
. It may also be specified asLastChangedBy
. HeadURL
- This keyword describes the full URL to the latest version of the file in the repository, and looks something like
$HeadURL: http://svn.collab.net/repos/trunk/README $
. It may be abbreviated asURL
. Id
- This keyword is a compressed combination of the other keywords. Its substitution looks something like
$Id: calc.c 148 2006-07-28 21:30:43Z sally $
, and is interpreted to mean that the filecalc.c
was last changed in revision 148 on the evening of July 28, 2006 by the usersally
.
You can create a version.properties file and set this content:
$HeadURL$After that launch this command in terminal:
$Author$
$Date$
$Revision$
svn propset svn:keywords "Date HeadURL Author Revision" version.properties
When you will check out the project, Subversion will replace data...
No comments:
Post a Comment