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

Re: XML-outputting editor questions

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2000-09-30 19:35:49 CEST

> It seems to me that the delta producer should be able to send
> property changes and text changes at any time.

Er, why? It makes life a lot easier of the producer can only work on
one file at a time.

>> * Although the producer of edit_fns calls is restricted to a
>> single traversal of the tree, it doesn't have to be
>> depth-first.

> We've changed this, explicitly for the benefit of the XML generator.
> The new rules in svn_delta.h are:

It's the new rules I was referring to. In particular:

     - The producer may not close a directory baton until it has
       closed all batons for its subdirectories.

Notice that a producer is allowed to open a sibling directory before
closing the directory it was working on. A producer could open a
directory D1, make a bunch of calls for stuff under D1, open a sibling
directory D2, make a bunch of calls under D2, and then go back to
making calls for stuff under D1. The XML-generating editor would be
forced to buffer either the initial set of calls under D1 or the calls
under D2.

Perhaps this is just a wording issue, and you guys did mean to
restrict the producer to depth-first ordering. In which case
dir_batons are redundant; the editor can keep track of the current
directory inside the editor_baton.
Received on Sat Oct 21 14:36:09 2006

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