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

Re: SVN properties keywords

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 14 Jan 2009 13:11:44 -0500

Quick question is why you'd need that. After all, if the file is in
Subversion, you already have the Subversion revision number.

You can set the svn:keywords property and use the $Revision$ or even
better the $Id$ keywords to give you the Subversion revision number.
Why is $Id$ better, because it also includes the file's path. If you
tag your releases, the file's path will automatically include the tag

The standard way of doing this is to do this as part of the
build/release process. That is, when you do a build or release, you
create the release file there and then and not to version the release
file itself. Subversion has tags that can do this much better and
easier than a string in a single file. We do this when we do our build
which is triggered with every Subversion check-in..

On Wed, Jan 14, 2009 at 11:57 AM, Torsten Giebl <wizard_at_syntheticsw.com> wrote:
> Hello !
> I am searching a way to have the Revision number in a source
> file that is always up to date, even when that file is not changed,
> but others are.
> CU
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1024474
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

David Weintraub
Received on 2009-01-14 19:13:10 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.