[Baypiggies] Subversion file tagging
ken at seehart.com
Mon Apr 9 01:12:04 CEST 2007
Thanks Rick, Max, and Dan. That's perfect. :-)
> check out the Keyword Substitution part of the manual:
> you have to set the svn:keywords property on the file.
Rick Kwan wrote:
> A lot of my files begin life with this incantation:
> __SVNtags__ = """
> 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.
>> 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 = 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:
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies