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

RE: version label in my source

From: Derek Mahar <DMahar_at_penson.ca>
Date: 2004-04-28 16:02:28 CEST

Apply the svn:keywords property with value HeadURL or URL and enter the
replacement keyword $HeadUrl$ or $URL$ in the header of your source.
Upon checkout, Subversion will replace either of these keywords with the
URL of the tag. Though this URL is often very long, it is the only way
of which I am aware that you can display a release label in your source.

Though Subversion can display URL, revision, author, and date
information in a source file, as far as I know, Subversion cannot
display commit comments or any past log information.

Derek

-----Original Message-----
From: Stewart Johnson [mailto:stew@fatcaterpillar.org]
Sent: April 26, 2004 1:15 PM
To: users@subversion.tigris.org
Subject: version label in my source

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All -

I'd like to be able to put tag information in my source files, but I'm
not
sure how to do it. If I create a tag for my project:

$ svn copy http://example.com/repos/myproj/trunk \
           http://example.com/repos/myproj/tags/REL-0.1.0 \
      -m "Release 0.1.0: snapshot build for the subsystem test team"

... then is it possible to get that release information into my source
files?
ie: I'd like "REL-0.1.0" to appear in the header of my sources, and
preferably also the commit comment to be there too. Is this possible, or
am I
going about this the wrong way?

I've been wrestling with this for a couple of days now, and not getting
anywhere. Any help appreciated!

Stewart.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAjUOmBGGH+7lrhRgRAhTfAJ4oZm7wy/yLQQ80opm2CgA7MlAhSgCgiNSy
FpVgpmj22PGBABWEUYw5x8Q=
=b4Sm
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.

AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous n’êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite.  Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l’expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d’erreur puisque les informations qu’il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus.  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 28 16:04:00 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.