Subversion defines a set of keywords which are available for substitution. A keyword provides useful dynamic information about versioned files. They generally provide information about the last modification made to the file. The following are the list of keywords provided by Subversion.
1. LastChangedDate (Alias Date):
This gives us the date and time when the file was last changed in the repository. It’s in the form $LastChangedDate: 2009-06-12 10:53:37 (Fri, 12 June 2009) $.
2. LastChangedRevision (Alias Revision or Rev):
This describes the last revision to the repository in which this particular file was modified. It looks like $LastChangedRevision: 119 $
3. LastChangedBy (Alias Author):
This keyword describes the last user to change this file in the repository and looks like $LastChangedBy: sivardhan $
4. HeadURL (Alias URL):
The information about the full URL to the latest version of the file in the repository is described by this keyword. It looks like $HeadURL: http://svn.collab.net/repos/trunk/README $
5. Id:
This keyword is the compressed combination of all the above keywords. Its substitution looks like this $Id: filename.c 119 2009-06-12 10:53:37Z srivardhan $
Keyword expansion is a client side operation. The client knows about the changes in the repository until the user has updated the last time. If the user does not update the working copy frequently then the client will be showing the wrong metadata information. The Subversion does not expand the keywords until asked to do so.

No comments:
Post a Comment