[off-topic but fun][RFC] Bundles as repositories
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Jun 20 09:35:00 BST 2007
>>>>> "robert" == Robert Collins <robertc at robertcollins.net> writes:
robert> On Mon, 2007-06-18 at 22:52 -0400, Aaron Bentley wrote:
>> Robert Collins wrote:
>> > On Fri, 2007-06-15 at 03:20 -0400, Aaron Bentley wrote:
>>
>> > Checking of preludes is conceptually hard simply because of line
>> > endings: email transmission will munge line endings and thus prelude
>> > checking cannot be binary based; it has to do whitespace tolerant diffs
>> > and other such complications.
>>
>> I think it's conceptually quite simple. It's like doing
>> case-insensitive comparisons by turning both inputs into lowercase.
>>
>> Do the absolute maximum damage that can be done to it via whitespace
>> munging, then record the sha1 sum of the munged prelude.
>>
>> Apply the same damage on the other side, and compare the resulting sha1.
robert> I'll be interested to see if this works out in practice. Just hope noone
robert> uses a whitespace only language through this :).
I know about a perl obfuscation module that uses the following trick:
- encode the text as bits
- replace 0 by space 1 by tab
- leave \n as is (not sure about that one)
The result is viewed in most text editors as spaces only :-)
The first time I looked at such a result (not knowing the trick),
I went: huh ?
Vincent
More information about the bazaar
mailing list