[Zope-dev] simple revision control(?) for Data.fs.

Anthony Baxter anthony@interlink.com.au
Wed, 12 Jan 2000 14:04:31 +1100


Hiya,

I plan to write something that will do 'daily' (or whatever) archiving of
Data.fs, by using a fairly simple algorithm:

start:
    store file, size

incremental:
    if new_size < size:
	store complete new file, size # pack operation has happened.
    else:
	store all bytes from size to new_size

This should allow me to reconstruct the Data.fs at any given point... 
can anyone see any problems with this?

(of course, the bonus followup would be to implement the CVS pserver
protocol so that you could retrieve it that way, but hey, I've got better
things to do with my life :)

Anthony