Thanks. I didn't know how binary was handled given the Timeline diff response = "cannot compute difference between binary files". I think it would be cool if instead fossil listed some of the metrics used or determined in the binary delta operation.
Thanks for Fossil! On Sun, Dec 22, 2013 at 2:51 PM, Stephan Beal <sgb...@googlemail.com> wrote: > On Sun, Dec 22, 2013 at 8:44 PM, <sky5w...@gmail.com> wrote: > >> Ah, is there a way to quantify the binary delta? >> If I have a 1MB binary file and commit a 1 byte change, what is the size >> of the computed binary delta? >> > > Very, very small: > > Create two binaries with a one-byte difference: > > [stephan@host:~/cvs/fossil/libfossil]$ cat f-tag > foo; echo -n x >> foo; > cat f-wiki >> foo > > [stephan@host:~/cvs/fossil/libfossil]$ cat f-tag > bar; echo -n y >> bar; > cat f-wiki >> bar > > > [stephan@host:~/cvs/fossil/libfossil]$ l foo bar > -rw-rw-r-- 1 stephan users 1281922 Dec 22 20:48 bar > -rw-rw-r-- 1 stephan users 1281922 Dec 22 20:48 foo > > The delta: > > [stephan@host:~/cvs/fossil/libfossil]$ ./f-delta foo bar > 4tz2 > 2Qjj@0,1:yO@0,2UEw@2Qk7,3wep03; > > Confirm that the delta actually does what's expected: > > [stephan@host:~/cvs/fossil/libfossil]$ ./f-delta foo bar > baz > [stephan@host:~/cvs/fossil/libfossil]$ ./f-delta -a baz foo > bar2 > [stephan@host:~/cvs/fossil/libfossil]$ cmp bar bar2 > [stephan@host:~/cvs/fossil/libfossil]$ echo $? > 0 > > To answer your question: 37 bytes: > > [stephan@host:~/cvs/fossil/libfossil]$ l baz > -rw-rw-r-- 1 stephan users 37 Dec 22 20:49 baz > > -- > ----- stephan beal > http://wanderinghorse.net/home/stephan/ > http://gplus.to/sgbeal > "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of > those who insist on a perfect world, freedom will have to do." -- Bigby Wolf > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > >
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users