Marc Haisenko wrote:
> On Monday 29 September 2008 15:01:40 Sam Barnett-Cormack wrote:
>> Benjamin Smith-Mannschott wrote:
>>> On Sep 29, 2008, at 03:08, Ryan Schmidt wrote:
>>>>> I think the reason is that a .docx file is just a container (ZIP
>>>>> file) containing XML files:
>>>>> Exists there a way to support keyword expansion for .docx too?
>>>> No. Unless the string "$Id:: $" appears in plaintext in the file,
>>>> Subversion can't expand the keywords.
>>> And the string "Id:: $" won't appear in this case since the entries
>>> of a docx zip file are compressed. Were this string, by some random
>>> chance to appear in the zip file, altering it would very likely break
>>> the file.
>> While this is true, it presumably wouldn't be horrific to code a way to
>> make this work - a property that allows keywords to be handled on
>> *specified* files with *certain supported* compressions. Pretty simple
>> pre- and post- filter. Would need to note caveats that it would break
>> any automatic signatures and so on in the file, of course. I'd imagine
>> it'd be *fairly* straightforward to write the generic wrapping code and
>> put filters in for zip, compress, gzip and bzip2.
>> If I had any idea about subversion internals, and any time, I'd offer to
>> try to do it.
> Can you spell "resource bomb" ? :-)
> Did you know that bzip2 can compress 1GB of null bytes down to just 785 bytes,
> and that when you want to uncompress you don't know how big the result will be
> until you really do uncompress ? Ask some e-mail virus scanner vendors about
> that :-)
> But if disabled by default and adequately documented with lots of warning
> signs it could make a nice Summer Of Code project.
Well hey, next year I'll qualify again... and I didn't get anywhere with
original submissions before ;)
Unless I decide to attack it before then, of course. In my mind, I would
never imagine it enabled by default. Keywords aren't enabled by default,
and I would imagine having to set a completely different property *and*
have clients have a boolean config option set to "false" by default.
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-29 17:04:30 CEST