---+ Subversion Keyword Substitution Those of you who have previously used CVS may be accustomed to inserting revision information into CVS checkins using keywords such as =$Id: $=. Subversion offers a similar facility, but requires setting an svn property on the file first to tell it you want keyword substitution to be done. Details are in [[http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html][the Keyword Substitution section]] of _Version Control with Subversion_. If you're working with LaTeX documents, you may be interested in the [[http://www.ctan.org/tex-archive/macros/latex/contrib/svn/][svn]] and [[http://www.ctan.org/tex-archive/macros/latex/contrib/svninfo/][svninfo]] macro packages, which can take Subversion keyword substitutions and reformat them into LaTeX dates, headers, and footers. *Important note:* Unlike CVS, Subversion will quite happily do keyword substitution on binary files if you set the svn:keywords property on those files. This will almost certainly corrupt the file. Avoid setting this property on binaries, particularly ones that are likely to contain text strings, such as tar archives and ZIP files. -- [[Main.brodbd][brodbd]] - 2010-01-19
This topic: Main
>
WebHome
>
SVNAdvanced
>
KeywordSubstitution
Topic revision: r1 - 2010-01-19 - brodbd
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback