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

Putting the tag name in the tagged code

From: jason marshall <jdmarshall_at_gmail.com>
Date: 2007-02-28 08:56:57 CET

I have a requirement for my code repository that I don't think is
exotic, or honestly all that uncommon. I need to get accurate version
information into any binary built from an SVN tag directory, for
purposes of version tracking and customer support.

I can certainly accomplish this with pre-built binaries. Many
Continuous Integration tools have facilities for doing this (and
generating the tags to begin with), but that only helps when I'm doing
a binary distribution. Is there a way to accomplish the same thing
(automatically!) with a source distribution?

The general consensus seems to be that it's both unwise and fairly
brittle to have an on-commit modification (such as code beautifying)
to the source tree. However, with a tag we're generally NOT expecting
anyone to update it, and at least in our case it's being created
directly in the repository, so there is no repos/working directory
inconsistency to mitigate.

So my question is, how best should I accomplish this? A pre-commit
hook? Groveling around in the svn info data to extract the tag
directory or revision number information?

Any suggestions would be appreciated. Pointers to existing solutions
to this problem would be superb.

Thanks,
Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 28 08:57:30 2007

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.