Tak jako 67.2 – „RCS - Revision Control System“ a CVS a ostatní systémy správy verzí, má i Subversion klíčová slova. Tato zapsána ve zdrojovém souboru jsou v okamžiku získávání zdrojového souboru s repository nahrazena hodnotami. Na rozdíl od zmíněných 67.2 – „RCS - Revision Control System“ a CVS jsou však klíčová slova v Subversion trochu jiná a nedochází k jejich expanzi automaticky. Soubor obsahující klíčová slova musí mít nastaven atribut svn:keywords
. Hodnotou tohoto adtributu je seznam klíčových slov. Slova zde uvedená se pak expandují a jiná ne.
Nastavení tohoto atributu provedem například takto:
$ svn propset svn:keywords "Id,HeadURL" readme
O aktuální hodnotě tohoto parametru se přesvědčíme příkazem:
$ svn propget svn:keywords readme
- Date
- This keyword describes the last time the file was known to have been changed in the repository, and looks something like $Date: 2002-07-22 21:42:37 -0700 (Mon, 22 Jul 2002) $. It may also be specified as LastChangedDate.
- 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 as LastChangedRevision or Rev.
- 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 as LastChangedBy.
- 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 as URL.
- Id
- This keyword is a compressed combination of the other keywords. Its substitution looks something like $Id: calc.c 148 2002-07-28 21:30:43Z sally $, and is interpreted to mean that the file calc.c was last changed in revision 148 on the evening of July 28, 2002 by the user sally.