
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Mon, Jan 26, 2009 at 5:35 AM, Thomas Davie wrote: -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREKAAYFAkl9zdAACgkQvpDo5Pfl1oKpawCdGc/rC5JOavHiUw/vpnrAkaqw KmsAoJf7NgTWJyXMag7OH3uzA5JOpUa6 =kU/4 -----END PGP SIGNATURE-----
On 26 Jan 2009, at 06:17, carmen wrote:
back to the original topic of the thread..
cool project,
id be interested ina pure-FS backend as well,
Indeed, very cool!
Can I make another feature request – generalize how diffs are created, so that I could in theory parse the file contents, and then diff the CSTs rather than diffing text.
Bob_______________________________________________
Well, if you look you see that 'diff' is in the Generic module; that is, diff can be defined using the basic operators provided by the backend. In this case, you 'diff' two versions by retrieving a specific revision, storing it, and then retrieving the other specific revision, storing it, and then filestore calls the Diff package on the two Strings. Nothing stops you from copying this approach and adding in a parsing step and then passing it to a custom diff - as long as the backend supplies 'retrieve', you're good. -- gwern