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

Re: Creating custom subversion keyword

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 20 May 2009 20:31:23 -0400

On Wed, May 20, 2009 at 20:08, Ketan Mandke <kmandke_at_gmail.com> wrote:
> Hi,
>
> I would like to be able to have subversion insert the value of a
> property directly into a file using a custom keyword. For example, I
> would like to be able to set the 'copyright' property using the
> following:
>
> svn propset copyright "(c) 2009 Bob Lobla." myfile.txt
>
> And then include the keyword $Copyright$ into my code and have it
> insert the value of the property into "myfile.txt":
>
> $Copyright$ -> $Copyright (c) 2009 Bob Lobla.$
>
> Does anyone know of a way to create such a custom keyword or at least
> insert headers into code maintained in a subversion project? I
> appreciate any help you might be able to provide as I haven't been
> able to find a good solution to this online.

Subversion doesn't support custom keywords. You'll need to script your
own substitution process around Subversion, or create your own build
of Subversion that does do custom keywords.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2338884

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-21 02:38:23 CEST

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

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