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

Re: more editor v2

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 16 Sep 2009 09:27:20 +0100

Greg Stein wrote:
> Ev2 doesn't care about text deltas. The stream passed in set_text is
> the new, desired contents. If the receiver wants to construct a delta,
> then it needs to discover a base somehow, and use that. In the RA
> commit editor case, it wants a delta for the wire, so it would take a
> WC callback at editor-construction time to get a stream of the base
> contents.

Whoa, you've lost me. What's the concept here? I thought the purpose of
the editor interface was to communicate changes, and that it was
designed to be serialised onto the wire for transmitting changes from
one place to another. I thought it used deltas because that's normally
the most efficient way to represent a change.

I note that it uses deltas to represent tree changes - "Add this node,
delete this node," rather than "The resulting tree will be, in full: X
X/Y X/Y/Z". (With "deltas" just meaning differences, not a particular

It feels like I'm missing the big picture. Help, please!

- Julian

Received on 2009-09-16 10:27:21 CEST

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.