Re: Problem with binary files which containing the revision number.
From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Wed, 8 Dec 2010 07:59:04 -0600
On Dec 8, 2010, at 07:39, Merkle Andreas wrote:
> we have a lot of binary files, e. g. word documents, schematics, etc., which are containing the revision number.
If the text you type into the document will appear in the binary file in plain text (as it seems to in Word files for example), then you can use Subversion keywords as you would in any text file. Subversion has fixed-width versions of its keywords that you would use in this case, to ensure that expanding the keyword won't corrupt the file. So just type "$Rev:: $" or "$Id:: $" in your document, and set svn:keywords on that document to that key. Make sure you use double colons after the keyword name so that you get the fixed-width versions, otherwise you will corrupt the file.
See:
http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.