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

Re: SVN Keywords...

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 27 Oct 2010 00:07:28 -0400

I'm not sure what you are planning on doing, but usually the RCS
Keywords are not a good idea. They usually cause more problems than
they solve. What usually works better (especially in C and C++) is to
define macros at compile time that are embedded in your program as
strings. For example, you could have an "About Box" that will display
this information or if your run your program with a --version switch.

This will give you more flexible control -- for example, you can use a
release number that corresponds to your tags. And, you don't have to
worry about forcing programming changes just to munge the $Date$
keyword.

However, if you must use RCS keywords, you can modify a property that
will force a diff in the file without modifying the file itself.

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2010-10-27 06:08:05 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.