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

Re: Q about the delta editor interface

From: Stephen Butler <sbutler_at_elego.de>
Date: Mon, 16 Feb 2009 10:55:14 +0100

Quoting Philipp Marek <philipp.marek_at_emerion.com>:

> On Montag, 16. Februar 2009, Stephen Butler wrote:
>> did you try calling open_directory(dir-a,...) after
>> add_directory(dir-a,...)?
> No, I didn't .... aren't these exclusive?

The two functions are independent, but not exclusive.

add_directory() simply creates a directory. Before adding children
or setting properties, call open_directory().

> What should I do with the baton acquired from add_directory()?

Pass it as the child_baton to open_directory(same_path,...), as the
dir_baton to change_dir_prop(), and as the parent_baton to functions
involving the dir's children.

(Disclaimer: I've written a fair bit of delta-editor consumer code,
but not driver code.)

> Wouldn't the duplicate close_directory() (on two batons) make problems?

Since there's only one baton per directory, call close_directory()
just once.


Stephen Butler | Software Developer
elego Software Solutions GmbH
Gustav-Meyer-Allee 25 | 13355 Berlin | Germany
fon: +49 30 2345 8696 | mobile: +49 163 25 45 015
fax: +49 30 2345 8695 | http://www.elegosoft.com
Geschäftsführer: Olaf Wagner | Sitz der Gesellschaft: Berlin
Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
Received on 2009-02-16 10:55:30 CET

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.