Changes between Version 22 and Version 23 of DevGuide
- Timestamp:
- Oct 17, 2016, 10:42:29 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevGuide
v22 v23 46 46 47 47 {{{#!python 48 revision = "$Rev$"48 version = "$Rev$" 49 49 home_page = "https://trac-hacks.org/wiki/MyAmazingPlugin" 50 50 license = "3-Clause BSD" … … 55 55 The attributes should be self-explanatory with the possible exception of the `trac` attribute. The `trac` attribute is used to direct bug reports to an issue tracker that differs from `home_page`. If the plugin is hosted on trac-hacks.org and the `home_page` attribute is set to point to the project wiki page, the `trac` attribute will not need to be set. 56 56 57 For files stored in Subversion, [http://svnbook.red-bean.com/en/1. 4/svn.advanced.props.special.keywords.html Keyword Substitution] is supported for the `home_page` (`url`) and `version` (`revision`) attributes.57 For files stored in Subversion, [http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.keywords.html Keyword Substitution] is supported for the `version` (`revision`) attribute. 58 58 59 59 {{{#!python 60 home_page = '$URL$'61 60 version = '$Rev$' 62 61 }}} 63 62 64 {{{#!python 65 url = '$URL$' 66 revision = '$Rev$' 67 }}} 68 69 The file's `svn:keywords` property must be edited to append `Rev` and/or `URL`. Note that the aliases `Revision`, `LastChangedRevision` and `HeadURL` are not supported. 63 The file's `svn:keywords` property must be edited to append `Rev`. Note that the aliases `Revision`, `LastChangedRevision` and `HeadURL` are not supported by Trac. 70 64 {{{#!sh 71 65 svn propedit svn:keywords MyAmazingMacro.py 72 66 }}} 73 74 Keywords are only expanded when the files are checked out of version control. If the files are downloaded directly from a Trac repository or the repository is cloned using Git-SVN, then the keywords will not be expanded in the source.75 67 76 68 == Coding Style