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

Re: Question regarding propset svn:keywords

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-01-26 22:18:29 CET

On Mon, 2004-01-26 at 15:07, Christopher Baus wrote:
> I want to add revision information to one of my source
> files so when I build and execute the version will
> show the svn revision. I added $Rev$ and the
> svn:keywords to the file that needs the information.
> The problem is the revision only gets up dated when
> the file changes. I understand this is what the
> documenation says, but it isn't what I want. I want
> the Revision of the repository. I'd have to guess
> this a common request, as it is the only way to
> automatically show the revision number for a specific
> build.
> Is there anyway to do this?

Run 'svnversion' and redirect the output into a file in your build
system. That's the reason we wrote 'svnversion'.

Hm, isn't this in the FAQ yet? Grr.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 26 22:19:25 2004

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.