You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by fisch <fi...@conne-island.de> on 2004/10/06 07:59:27 UTC
tags and keywords
hi,
In CVS you can tag a version (a set of source files).
During export the cvs substitutes the some keywords, especially the
keyword "name" with the specified tag.
If you use in your c++ sources the line
< static volatile const char* ___version___ = "@(#) $Name: $"; >,
it is possible the retrieve the tag-version out of the compiled binary
with the tool <ident>.
Is in SVN an similar beahvoir included?
I know that tagging is different to cvs. But the recommented structure
of the repository includes a path "tags". So i suggest a keyword that
would use these behavior.
bye
fisch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: tags and keywords
Posted by Konrad Rosenbaum <ko...@silmor.de>.
fisch said:
> < static volatile const char* ___version___ = "@(#) $Name: $"; >,
> it is possible the retrieve the tag-version out of the compiled binary
> with the tool <ident>.
>
> Is in SVN an similar beahvoir included?
< static volatile const char* ___version___ = "@(#) $HeadURL$"; >,
should do the trick. If you want you can parse this thing a bit in your
runtime code.
Konrad
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org