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

Feature Request: Repository Version property keyword

From: Caleb Tennis <caleb_at_aei-tech.com>
Date: 2004-09-09 20:01:04 CEST

The svn:keywords namespace could benefit from another addition - something
like "RepositoryVersion" which could act much like "LastChangedRevision" only
it updates at each repository commit and not just on the particular file

This feature would be nice because the text of the expanded string could be
directly encoded into code or text of what's being written. For example, in
a C program:

const char *repo_version = "$RepositoryVersion$";

Then the program in question could utilize this version information. For
example, programs we use here can utilize this as a "build" number which the
user can know what version of the software they are running.

A current workaround for this exists using scripts and getting a number from
the 'svnversion' command (this is done, for example, by the scripts which
generate the docbook output for the Subversion online book), but having
direct expansion directly in the version controlled file would be a nifty
feature as well.

Thoughts? Comments? Shall I file an issue?

Caleb (please cc me directly)

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 9 20:19:27 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.