[Baypiggies] Subversion file tagging
max at theslimmers.net
Wed Apr 4 03:33:06 CEST 2007
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.
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?
svn_revision = 2213
The usage would be something like:
from svn_revision import svn_revision
print "This is FooPy revision", svn_revision
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies