svn:keywords
Published on 10 Mar 2004Tags #Subversion
Subversion supports some keywords which it is able to substitute in a versioned file though there are two things you need to do:
-
Add keywords to your file: The format is
$KEYWORD$. -
Tell subversion about it: You will have to set the
svn:keywordsproperty to contain a space separated list of keywords which you expect to have substituted, e.g.svn propset svn:keywords "LastChangedRevision Id" FILE
The following provides a short list of supported keywords:
-
LastChangedDate -
LastChangedRevision -
LastChangedBy -
HeadURL -
Id