[Baypiggies] Subversion file tagging

Rick Kwan kenobi at gmail.com
Wed Apr 4 21:44:01 CEST 2007


A lot of my files begin life with this incantation:
__SVNtags__ = """
$URL$
$Date$
$Rev$
"""
When you have multiple branches, the URL will tell you the name of
this file plus the branch it is found in.
--Rick Kwan

On 4/3/07, Max Slimmer <max at theslimmers.net> wrote:
>
>
> you can add keywords like $Revision: $
> what I do is put a line like
> _version = "$Revision: 15490 $"
> the 15490 was supplied on doing the commit.
> In order to get it to work on svn you need to set properties on the file to
> accept specific keywords or it is possible to set it at the config level
> search for keywords and svn
>
> You can use the special keywords like Id, Author ... similar to cvs, the
> differance is that you need to enable the properties on svn.
> http://svnbook.red-bean.com/en/1.0/ch07s02.html
>
> max
>
>
>  ________________________________
>  From: baypiggies-bounces at python.org [mailto:baypiggies-bounces at python.org]
> On Behalf Of Ken Seehart
> Sent: Tuesday, April 03, 2007 5:39 PM
> To: baypiggies at python.org
> Subject: [Baypiggies] Subversion file tagging
>
>
> Anyone know how to configure subversion to make a commit automatically
> update the contents of a particular file with the revision number?
>
> For example...
> svn_revision.py:
> svn_revision = 2213
>
>
> The usage would be something like:
> from svn_revision import svn_revision
>
> print "This is FooPy revision", svn_revision
>
>
>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>


More information about the Baypiggies mailing list