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

Re: keyword expansion for MS Office files

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Fri, 2 May 2008 19:45:52 -0500

On May 2, 2008, at 7:39 PM, Oren Eini (Murphy & Associates) wrote:

>> My client is interested in using Subversion for versioning
>> documents such as
>> MS Office files. They would like keyword substitution on these
>> files for
>> things like Revision number and date.
>> I just tested this with a Word document and it seems to work fine.
>> I used
>> fixed length keywords to avoid corrupting the file and Subversion
>> did a fine
>> job. I tried the keywords both on the actual document and in the file
>> properties area (using custom properties).
>> So my question is: is this feature safe on non-text files such as
>> MS Office
>> files? Or will I get into trouble and corrupt files? Has anyone
>> implemented
>> this successfully?
> If you would use that on the text versions (MS Office has XML
> versions), that should be safe.

If we believe that it's unlikely that a string like
"$Revision:: $" would otherwise appear in Word's binary
format, then it's ok to use in Word binary files too. I believe the
fixed-width keywords were created exactly so that they could be used
in binary formats like (binary) Word.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-03 02:46:40 CEST

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.