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

RE: keywords in Subversion

From: Johan Corveleyn <johan.corveleyn_at_uz.kuleuven.ac.be>
Date: Thu, 2 Jul 2009 11:57:29 +0200

> > I would like to define some additional local keywords in
> Subversion
> > and be able to set their values. For example I’d like a variable
> say
> > $MYPATH$ and be able to set this to say /var/mypath1/bin or
> > /var/mypath2/bin before I do an export.
> >
> > Is there any way I can do this?
> >
> Well, yes, that's what properties are for:
>
> http://svnbook.red-bean.com/en/1.5/svn.advanced.props.html
>
> You can name it anything you want, just avoid using the svn:
> prefix.
> But things like max:MyPath would be just fine.

Note that, while you can set custom "properties", as Olivier points out, you will not get custom "keyword expansion" (like $Id$ etc being expanded in your sources files). If that's what you're after, you'll have to wait until feature request #890 gets addressed:
http://subversion.tigris.org/issues/show_bug.cgi?id=890

Regards,
Johan

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-02 11:58:42 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.