[Baypiggies] Subversion file tagging
Ken Seehart
ken at seehart.com
Mon Apr 9 01:12:04 CEST 2007
Thanks Rick, Max, and Dan. That's perfect. :-)
- Ken
Dan wrote:
> check out the Keyword Substitution part of the manual:
>
> http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html
>
> you have to set the svn:keywords property on the file.
>
> Dan
Rick Kwan wrote:
> 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
>>
>>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/baypiggies/attachments/20070408/8a04c383/attachment.htm
More information about the Baypiggies
mailing list