[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How do I turn on keyword substitution?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-04-03 16:28:52 CEST

On Wed, 2002-04-03 at 03:34, Andrei Lenkei wrote:

> 1) How do I turn on keyword substitution? For a file? For my whole project?

Use 'svn propset' to set the 'svn:keywords' property on a file.

>
> 2) Which CVS keywords are supported? While searching through the archive
> I noticed a posting that said $Log$ was NOT supported (and it was the
> one I was using!) hence my question.

The value of the property is a space-delimited list of keywords that you
want to activate. The choices are (taken from svn_types.h)

/* The most recent revision in which this file was changed. */
#define SVN_KEYWORD_REVISION_LONG "LastChangedRevision"
#define SVN_KEYWORD_REVISION_SHORT "Rev"

/* The most recent date (repository time) when this file was changed. */
#define SVN_KEYWORD_DATE_LONG "LastChangedDate"
#define SVN_KEYWORD_DATE_SHORT "Date"

/* Who most recently committed to this file. */
#define SVN_KEYWORD_AUTHOR_LONG "LastChangedBy"
#define SVN_KEYWORD_AUTHOR_SHORT "Author"

/* The URL for the head revision of this file. */
#define SVN_KEYWORD_URL_LONG "HeadURL"
#define SVN_KEYWORD_URL_SHORT "URL"

...you can use either the long or short form of each keyword in your
document, and in the value of the svn:keywords property. It's up to
you.

Sorry for the lack of documentation. This is a relatively new, untested
feature. When we hit alpha, we'll cover these holes. :-)

Received on Wed Apr 3 16:30:44 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.