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

Re: One-time keyword substitution

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 10 Jan 2011 10:11:42 -0500

2011/1/10 Philipp Leusmann <leusmann_at_ebcot.de>

> is there a way to have svn substitute a keyword only once and then leave it
> at the substituted value?
>

To get directly to your answer: No, Subversion doesn't do what you want.

There is a whole mess of debate on the value of RCS keywords in both
Subversion and other version control systems.

I come down firmly on the side the RCS keywords are evil and should never be
used. They basically change the source code you've tested and vetted on
commit which can only mean trouble. And all for what? Everything that RCS
keywords do is already in Subversion.

What is this database for? Is this to allow people to see differences
between files in Subversion revisions via a webpage? If so, why not use
either sventon or ViewVC (http://www.sventon.org/ or http://viewvc.org/)
which handle everything for you without the need for a database? If you
want, you can role your own system that parses the various Subversion
commands via PHP or Perl CGI or whatever technology you want on the fly.

What you're trying to do looks like something "svn log" or "svn blame" will
already do. If you really, really need to do this, then the best bet is to
use a post-commit hook that'll update a file or database with the
information you want.

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2011-01-10 16:19:52 CET

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.