[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

AW: Problem with binary files which containing the revision number.

From: Merkle Andreas <Andreas.Merkle_at_newtec.de>
Date: Wed, 8 Dec 2010 15:37:23 +0100

That's a workaround for the binary files, which contains the keywords as plain text. Ok.
But it is not really safe ... there is still a probability that the binary will be corrupt afterwards.
And it doesn't work for all the other binary files, e.g. schematics, etc.

Anyway thanks for the idea.

> 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
Received on 2010-12-08 15:38:05 CET

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.