[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Change #6: Move textdeltas to the "other side" of the editor.

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-01-21 21:59:50 CET

On Sun, Jan 21, 2001 at 01:25:44AM -0500, Greg Hudson wrote:
> [As corrected by Greg Stein:]
> > set_file_contents (filebaton, [src_stream], target_stream)
> > apply_delta (filebaton, [src_stream], delta, enum delta_type)
> What use is there for src_stream?

The editor implementing set_file_contents() can use the two streams to
compute a delta and then use *that* to transmit what the file should be set

> delta is a byte stream, yes?

Yes. Its format is defined by the enum. At the moment, we have only

[ in the future, we could have "unidiff" or "gnudiff" or somesuch ]

> Why can't set_file_contents be just a case of apply_delta with a
> delta_type of "new plain text"?

That's exactly what I said. I was outvoted.


Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:19 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.